memblock: use memblock_free for freeing virtual pointers
[linux-2.6-microblaze.git] / arch / sparc / kernel / smp_64.c
index 2507549..b98a7bb 100644 (file)
@@ -1567,7 +1567,7 @@ static void * __init pcpu_alloc_bootmem(unsigned int cpu, size_t size,
 
 static void __init pcpu_free_bootmem(void *ptr, size_t size)
 {
-       memblock_phys_free(__pa(ptr), size);
+       memblock_free(ptr, size);
 }
 
 static int __init pcpu_cpu_distance(unsigned int from, unsigned int to)