summaryrefslogtreecommitdiff
path: root/arch/sparc64/mm/init.c
diff options
context:
space:
mode:
authorDavid S. Miller <davem@davemloft.net>2008-02-13 19:21:51 -0800
committerDavid S. Miller <davem@davemloft.net>2008-04-23 23:32:11 -0700
commitad072004ca35a9918964ca7aee2bf00d79c8657f (patch)
treedffd2075d875d0e53b638c07cff030beb8dea1dc /arch/sparc64/mm/init.c
parentb97094560b991af5c62391014e72bfa4c3a3701f (diff)
downloadlwn-ad072004ca35a9918964ca7aee2bf00d79c8657f.tar.gz
lwn-ad072004ca35a9918964ca7aee2bf00d79c8657f.zip
[SPARC64]: Use lmb_alloc() for PROM device tree.
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'arch/sparc64/mm/init.c')
-rw-r--r--arch/sparc64/mm/init.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/sparc64/mm/init.c b/arch/sparc64/mm/init.c
index 658ec462ed45..0abefc8ca40d 100644
--- a/arch/sparc64/mm/init.c
+++ b/arch/sparc64/mm/init.c
@@ -1214,6 +1214,8 @@ void __init paging_init(void)
*/
real_setup_per_cpu_areas();
+ prom_build_devicetree();
+
/* Setup bootmem... */
pages_avail = 0;
last_valid_pfn = end_pfn = bootmem_init(&pages_avail, phys_base);
@@ -1222,8 +1224,6 @@ void __init paging_init(void)
kernel_physical_mapping_init();
- prom_build_devicetree();
-
if (tlb_type == hypervisor)
sun4v_mdesc_init();