]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
powerpc: Make sparsemem the default on 64-bit Book3S
authorMichael Ellerman <mpe@ellerman.id.au>
Wed, 5 Apr 2017 06:10:48 +0000 (16:10 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Mon, 10 Apr 2017 21:46:05 +0000 (07:46 +1000)
Make sparsemem the default on all 64-bit Book3S platforms. It already is
for pseries and ps3, and we need to enable it for powernv because on
POWER9 memory between chips is discontiguous.

For the other platforms sparsemem should work fine, though it might add
a small amount of overhead. We can always force FLATMEM in the
defconfigs if necessary.

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/Kconfig

index 45724923a69cc26306548f57984b1a1ec096d598..9ff731f50a29a9c16e3fa6ffc40f303b1d12e073 100644 (file)
@@ -586,7 +586,7 @@ config ARCH_SPARSEMEM_ENABLE
 
 config ARCH_SPARSEMEM_DEFAULT
        def_bool y
-       depends on (SMP && PPC_PSERIES) || PPC_PS3
+       depends on PPC_BOOK3S_64
 
 config SYS_SUPPORTS_HUGETLBFS
        bool