diff mbox

sh: fix size calculation for NUMA node 0

Message ID 20091207141159.6318.90269.sendpatchset@rxone.opensource.se (mailing list archive)
State Accepted
Headers show

Commit Message

Magnus Damm Dec. 7, 2009, 2:11 p.m. UTC
None
diff mbox

Patch

--- 0001/arch/sh/mm/numa.c
+++ work/arch/sh/mm/numa.c	2009-12-07 21:13:58.000000000 +0900
@@ -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);