Skip to content

Commit

Permalink
sh: Only reserve memory under CONFIG_ZERO_PAGE_OFFSET when it != 0.
Browse files Browse the repository at this point in the history
Signed-off-by: Chris Smith <chris.smith@st.com>
Signed-off-by: Stuart Menefy <stuart.menefy@st.com>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
  • Loading branch information
Christopher SMITH authored and Paul Mundt committed Jan 29, 2009
1 parent cadc4e1 commit 4886516
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions arch/sh/kernel/setup.c
Original file line number Diff line number Diff line change
Expand Up @@ -262,11 +262,11 @@ void __init setup_bootmem_allocator(unsigned long free_pfn)
BOOTMEM_DEFAULT);

/*
* reserve physical page 0 - it's a special BIOS page on many boxes,
* enabling clean reboots, SMP operation, laptop functions.
* Reserve physical pages below CONFIG_ZERO_PAGE_OFFSET.
*/
reserve_bootmem(__MEMORY_START, CONFIG_ZERO_PAGE_OFFSET,
BOOTMEM_DEFAULT);
if (CONFIG_ZERO_PAGE_OFFSET != 0)
reserve_bootmem(__MEMORY_START, CONFIG_ZERO_PAGE_OFFSET,
BOOTMEM_DEFAULT);

sparse_memory_present_with_active_regions(0);

Expand Down

0 comments on commit 4886516

Please sign in to comment.