summaryrefslogtreecommitdiffstats
path: root/arch/powerpc/mm/pgtable-radix.c
diff options
context:
space:
mode:
authorBenjamin Herrenschmidt2016-07-05 07:03:51 +0200
committerMichael Ellerman2016-07-21 10:56:38 +0200
commit166dd7d3fbf2df183926f0e4b4855f6cbd8da945 (patch)
tree5f13de87384d672c1ceeaba5ac7dc07d5eca6205 /arch/powerpc/mm/pgtable-radix.c
parentpowerpc/pmac: Remove early allocation of the SMU command buffer (diff)
downloadkernel-qcow2-linux-166dd7d3fbf2df183926f0e4b4855f6cbd8da945.tar.gz
kernel-qcow2-linux-166dd7d3fbf2df183926f0e4b4855f6cbd8da945.tar.xz
kernel-qcow2-linux-166dd7d3fbf2df183926f0e4b4855f6cbd8da945.zip
powerpc/64: Move MMU backend selection out of platform code
We move it into early_mmu_init() based on firmware features. For PS3, we have to move the setting of these into early_init_devtree(). Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Diffstat (limited to 'arch/powerpc/mm/pgtable-radix.c')
-rw-r--r--arch/powerpc/mm/pgtable-radix.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/powerpc/mm/pgtable-radix.c b/arch/powerpc/mm/pgtable-radix.c
index 4ea1094c9fc4..003ff48a11b6 100644
--- a/arch/powerpc/mm/pgtable-radix.c
+++ b/arch/powerpc/mm/pgtable-radix.c
@@ -345,6 +345,7 @@ void __init radix__early_init_mmu(void)
radix_init_page_sizes();
if (!firmware_has_feature(FW_FEATURE_LPAR)) {
+ radix_init_native();
lpcr = mfspr(SPRN_LPCR);
mtspr(SPRN_LPCR, lpcr | LPCR_UPRT | LPCR_HR);
radix_init_partition_table();