powerpc: Simplify redundant Kconfig tests
authorChristophe Leroy <christophe.leroy@csgroup.eu>
Mon, 19 Sep 2022 17:01:41 +0000 (19:01 +0200)
committerMichael Ellerman <mpe@ellerman.id.au>
Mon, 26 Sep 2022 13:00:14 +0000 (23:00 +1000)
PPC_85xx implies PPC32 so no need to check PPC32 in addition.

PPC64 && !PPC_BOOK3E_64 means PPC_BOOK3S_64.

PPC_BOOK3E_64 implies PPC_E500.

Signed-off-by: Christophe Leroy <christophe.leroy@csgroup.eu>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/244cce3e603f2b79796314c0c1c46cab927b9adc.1663606876.git.christophe.leroy@csgroup.eu
arch/powerpc/Kconfig
arch/powerpc/platforms/Kconfig.cputype
arch/powerpc/xmon/xmon.c

index f305c2f..44d98d3 100644 (file)
@@ -606,7 +606,7 @@ config RELOCATABLE
 
 config RANDOMIZE_BASE
        bool "Randomize the address of the kernel image"
-       depends on (PPC_85xx && FLATMEM && PPC32)
+       depends on PPC_85xx && FLATMEM
        depends on RELOCATABLE
        help
          Randomizes the virtual address at which the kernel image is
index 6a216e8..51059af 100644 (file)
@@ -314,7 +314,7 @@ config 4xx
 
 config BOOKE
        bool
-       depends on PPC_E500 || 44x || PPC_BOOK3E_64
+       depends on PPC_E500 || 44x
        default y
 
 config BOOKE_OR_40x
index e6d678d..f51c882 100644 (file)
@@ -288,7 +288,7 @@ Commands:\n\
   t    print backtrace\n\
   x    exit monitor and recover\n\
   X    exit monitor and don't recover\n"
-#if defined(CONFIG_PPC64) && !defined(CONFIG_PPC_BOOK3E_64)
+#if defined(CONFIG_PPC_BOOK3S_64)
 "  u   dump segment table or SLB\n"
 #elif defined(CONFIG_PPC_BOOK3S_32)
 "  u   dump segment registers\n"