diff options
author | David S. Miller <davem@davemloft.net> | 2008-02-13 22:22:23 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-04-24 02:32:12 -0400 |
commit | 4a28333984be123d9c063df23175c48749c4b4a0 (patch) | |
tree | fd463dad09c9578b9762cddd508cdae73c0d45c3 /arch/sparc64/mm/init.c | |
parent | ad072004ca35a9918964ca7aee2bf00d79c8657f (diff) |
[SPARC64]: Initialize MDESC earlier and use lmb_alloc()
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'arch/sparc64/mm/init.c')
-rw-r--r-- | arch/sparc64/mm/init.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/arch/sparc64/mm/init.c b/arch/sparc64/mm/init.c index 0abefc8ca40d..8e0e86787127 100644 --- a/arch/sparc64/mm/init.c +++ b/arch/sparc64/mm/init.c | |||
@@ -1216,6 +1216,9 @@ void __init paging_init(void) | |||
1216 | 1216 | ||
1217 | prom_build_devicetree(); | 1217 | prom_build_devicetree(); |
1218 | 1218 | ||
1219 | if (tlb_type == hypervisor) | ||
1220 | sun4v_mdesc_init(); | ||
1221 | |||
1219 | /* Setup bootmem... */ | 1222 | /* Setup bootmem... */ |
1220 | pages_avail = 0; | 1223 | pages_avail = 0; |
1221 | last_valid_pfn = end_pfn = bootmem_init(&pages_avail, phys_base); | 1224 | last_valid_pfn = end_pfn = bootmem_init(&pages_avail, phys_base); |
@@ -1224,9 +1227,6 @@ void __init paging_init(void) | |||
1224 | 1227 | ||
1225 | kernel_physical_mapping_init(); | 1228 | kernel_physical_mapping_init(); |
1226 | 1229 | ||
1227 | if (tlb_type == hypervisor) | ||
1228 | sun4v_mdesc_init(); | ||
1229 | |||
1230 | { | 1230 | { |
1231 | unsigned long zones_size[MAX_NR_ZONES]; | 1231 | unsigned long zones_size[MAX_NR_ZONES]; |
1232 | unsigned long zholes_size[MAX_NR_ZONES]; | 1232 | unsigned long zholes_size[MAX_NR_ZONES]; |