aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohannes Weiner <jw@emlix.com>2009-03-04 10:21:29 -0500
committerChris Zankel <chris@zankel.net>2009-04-03 02:39:08 -0400
commit0bef42e5c061b4aa63cc488d11400a1ef8b8f5a2 (patch)
tree9f711e35b9d89e962a8c2a5cebf3cf2ffa34db91
parent28a0ce7f642f503dde866f763e8144a517fdf74a (diff)
xtensa: fix init_bootmem_node() argument order
The second argument to init_bootmem_node() is the PFN to place the bootmem bitmap at and the third argument is the first PFN on the node. This is currently backwards but never made any problems as both values were always zero. Signed-off-by: Johannes Weiner <jw@emlix.com> Signed-off-by: Chris Zankel <chris@zankel.net>
-rw-r--r--arch/xtensa/mm/init.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/xtensa/mm/init.c b/arch/xtensa/mm/init.c
index 34163cfaaffc..55b043a5918a 100644
--- a/arch/xtensa/mm/init.c
+++ b/arch/xtensa/mm/init.c
@@ -145,8 +145,9 @@ void __init bootmem_init(void)
145 /* Reserve the bootmem bitmap area */ 145 /* Reserve the bootmem bitmap area */
146 146
147 mem_reserve(bootmap_start, bootmap_start + bootmap_size, 1); 147 mem_reserve(bootmap_start, bootmap_start + bootmap_size, 1);
148 bootmap_size = init_bootmem_node(NODE_DATA(0), min_low_pfn, 148 bootmap_size = init_bootmem_node(NODE_DATA(0),
149 bootmap_start >> PAGE_SHIFT, 149 bootmap_start >> PAGE_SHIFT,
150 min_low_pfn,
150 max_low_pfn); 151 max_low_pfn);
151 152
152 /* Add all remaining memory pieces into the bootmem map */ 153 /* Add all remaining memory pieces into the bootmem map */