diff options
author | Magnus Damm <damm@opensource.se> | 2009-12-07 15:11:59 +0100 |
---|---|---|
committer | Paul Mundt <lethal@linux-sh.org> | 2009-12-09 04:40:42 +0100 |
commit | f3a4c00ad35a9f21db82516fdc600cb1be301c23 (patch) | |
tree | 7a3ba1a3367e18cb03460e8a8e353d1ba81b6eca /arch/sh | |
parent | sh: Replace an explicit computation by the use of the container_of macro (diff) | |
download | linux-f3a4c00ad35a9f21db82516fdc600cb1be301c23.tar.xz linux-f3a4c00ad35a9f21db82516fdc600cb1be301c23.zip |
sh: fix size calculation for NUMA node 0
Fix the NUMA size calculation for node 0. Do the same
as the UMA version of setup_memory() and use address
instead of pfn when calculating the size.
Signed-off-by: Magnus Damm <damm@opensource.se>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'arch/sh')
-rw-r--r-- | arch/sh/mm/numa.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/sh/mm/numa.c b/arch/sh/mm/numa.c index 6c524446c0f6..b44e83526673 100644 --- a/arch/sh/mm/numa.c +++ b/arch/sh/mm/numa.c @@ -28,7 +28,7 @@ void __init setup_memory(void) { unsigned long free_pfn = PFN_UP(__pa(_end)); u64 base = min_low_pfn << PAGE_SHIFT; - u64 size = (max_low_pfn << PAGE_SHIFT) - min_low_pfn; + u64 size = (max_low_pfn << PAGE_SHIFT) - base; lmb_add(base, size); |