diff options
Diffstat (limited to 'arch/mips/kernel/setup.c')
-rw-r--r-- | arch/mips/kernel/setup.c | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/arch/mips/kernel/setup.c b/arch/mips/kernel/setup.c index f352cd9c834b..e1d76b87601c 100644 --- a/arch/mips/kernel/setup.c +++ b/arch/mips/kernel/setup.c | |||
@@ -315,13 +315,17 @@ static void __init bootmem_init(void) | |||
315 | 315 | ||
316 | if (min_low_pfn >= max_low_pfn) | 316 | if (min_low_pfn >= max_low_pfn) |
317 | panic("Incorrect memory mapping !!!"); | 317 | panic("Incorrect memory mapping !!!"); |
318 | if (min_low_pfn > 0) { | 318 | if (min_low_pfn > ARCH_PFN_OFFSET) { |
319 | printk(KERN_INFO | 319 | printk(KERN_INFO |
320 | "Wasting %lu bytes for tracking %lu unused pages\n", | 320 | "Wasting %lu bytes for tracking %lu unused pages\n", |
321 | min_low_pfn * sizeof(struct page), | 321 | (min_low_pfn - ARCH_PFN_OFFSET) * sizeof(struct page), |
322 | min_low_pfn); | 322 | min_low_pfn - ARCH_PFN_OFFSET); |
323 | min_low_pfn = 0; | 323 | } else if (min_low_pfn < ARCH_PFN_OFFSET) { |
324 | printk(KERN_INFO | ||
325 | "%lu free pages won't be used\n", | ||
326 | ARCH_PFN_OFFSET - min_low_pfn); | ||
324 | } | 327 | } |
328 | min_low_pfn = ARCH_PFN_OFFSET; | ||
325 | 329 | ||
326 | /* | 330 | /* |
327 | * Determine low and high memory ranges | 331 | * Determine low and high memory ranges |