Commit 7ee4ef58 authored by Andrew Morton's avatar Andrew Morton Committed by Linus Torvalds

[PATCH] Disable bootmem warning

From: Andi Kleen <ak@suse.de>

Make the "hm, page reserved twice" message dependent on CONFIG_DEBUG_BOOTMEM.
parent 725fb82e
...@@ -91,8 +91,11 @@ static void __init reserve_bootmem_core(bootmem_data_t *bdata, unsigned long add ...@@ -91,8 +91,11 @@ static void __init reserve_bootmem_core(bootmem_data_t *bdata, unsigned long add
if (end > bdata->node_low_pfn) if (end > bdata->node_low_pfn)
BUG(); BUG();
for (i = sidx; i < eidx; i++) for (i = sidx; i < eidx; i++)
if (test_and_set_bit(i, bdata->node_bootmem_map)) if (test_and_set_bit(i, bdata->node_bootmem_map)) {
#ifdef CONFIG_DEBUG_BOOTMEM
printk("hm, page %08lx reserved twice.\n", i*PAGE_SIZE); printk("hm, page %08lx reserved twice.\n", i*PAGE_SIZE);
#endif
}
} }
static void __init free_bootmem_core(bootmem_data_t *bdata, unsigned long addr, unsigned long size) static void __init free_bootmem_core(bootmem_data_t *bdata, unsigned long addr, unsigned long size)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment