diff options
Diffstat (limited to 'arch/x86/mm/numa.c')
-rw-r--r-- | arch/x86/mm/numa.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/arch/x86/mm/numa.c b/arch/x86/mm/numa.c index 88e56272996..496f494593b 100644 --- a/arch/x86/mm/numa.c +++ b/arch/x86/mm/numa.c | |||
@@ -364,8 +364,7 @@ void __init numa_reset_distance(void) | |||
364 | 364 | ||
365 | /* numa_distance could be 1LU marking allocation failure, test cnt */ | 365 | /* numa_distance could be 1LU marking allocation failure, test cnt */ |
366 | if (numa_distance_cnt) | 366 | if (numa_distance_cnt) |
367 | memblock_x86_free_range(__pa(numa_distance), | 367 | memblock_free(__pa(numa_distance), size); |
368 | __pa(numa_distance) + size); | ||
369 | numa_distance_cnt = 0; | 368 | numa_distance_cnt = 0; |
370 | numa_distance = NULL; /* enable table creation */ | 369 | numa_distance = NULL; /* enable table creation */ |
371 | } | 370 | } |
@@ -394,7 +393,7 @@ static int __init numa_alloc_distance(void) | |||
394 | numa_distance = (void *)1LU; | 393 | numa_distance = (void *)1LU; |
395 | return -ENOMEM; | 394 | return -ENOMEM; |
396 | } | 395 | } |
397 | memblock_x86_reserve_range(phys, phys + size, "NUMA DIST"); | 396 | memblock_reserve(phys, size); |
398 | 397 | ||
399 | numa_distance = __va(phys); | 398 | numa_distance = __va(phys); |
400 | numa_distance_cnt = cnt; | 399 | numa_distance_cnt = cnt; |