aboutsummaryrefslogtreecommitdiffstats
path: root/mm/bootmem.c
diff options
context:
space:
mode:
Diffstat (limited to 'mm/bootmem.c')
-rw-r--r--mm/bootmem.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/mm/bootmem.c b/mm/bootmem.c
index fda01a2c31af..13b0caa9793c 100644
--- a/mm/bootmem.c
+++ b/mm/bootmem.c
@@ -436,7 +436,7 @@ void __init free_bootmem_node(pg_data_t *pgdat, unsigned long physaddr,
436{ 436{
437#ifdef CONFIG_NO_BOOTMEM 437#ifdef CONFIG_NO_BOOTMEM
438 kmemleak_free_part(__va(physaddr), size); 438 kmemleak_free_part(__va(physaddr), size);
439 free_early(physaddr, physaddr + size); 439 memblock_x86_free_range(physaddr, physaddr + size);
440#else 440#else
441 unsigned long start, end; 441 unsigned long start, end;
442 442
@@ -462,7 +462,7 @@ void __init free_bootmem(unsigned long addr, unsigned long size)
462{ 462{
463#ifdef CONFIG_NO_BOOTMEM 463#ifdef CONFIG_NO_BOOTMEM
464 kmemleak_free_part(__va(addr), size); 464 kmemleak_free_part(__va(addr), size);
465 free_early(addr, addr + size); 465 memblock_x86_free_range(addr, addr + size);
466#else 466#else
467 unsigned long start, end; 467 unsigned long start, end;
468 468