]> www.infradead.org Git - users/dwmw2/linux.git/commitdiff
powerpc/32s: Fix CONFIG_BOOK3S_601 uses
authorMichael Ellerman <mpe@ellerman.id.au>
Fri, 24 Jul 2020 13:17:24 +0000 (23:17 +1000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 19 Aug 2020 06:16:17 +0000 (08:16 +0200)
[ Upstream commit df4d4ef22446b3a789a4efd74d34f2ec1e24deb2 ]

We have two uses of CONFIG_BOOK3S_601, which doesn't exist. Fix them
to use CONFIG_PPC_BOOK3S_601 which is the correct symbol.

Fixes: 12c3f1fd87bf ("powerpc/32s: get rid of CPU_FTR_601 feature")
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20200724131728.1643966-5-mpe@ellerman.id.au
Signed-off-by: Sasha Levin <sashal@kernel.org>
arch/powerpc/include/asm/ptrace.h
arch/powerpc/include/asm/timex.h

index ee3ada66deb58cb094162ca5a13c9fdb836950c1..c41220f4aad9e60ea3a9aa7afd6edba62b581f6c 100644 (file)
@@ -203,7 +203,7 @@ do {                                                                              \
 #endif /* __powerpc64__ */
 
 #define arch_has_single_step() (1)
-#ifndef CONFIG_BOOK3S_601
+#ifndef CONFIG_PPC_BOOK3S_601
 #define arch_has_block_step()  (true)
 #else
 #define arch_has_block_step()  (false)
index d2d2c4bd843589d0ae2115e0ca7cdcef4fb6d2a8..6047402b0a4dbbf0e2f4710eca5eeca4915a9ad2 100644 (file)
@@ -17,7 +17,7 @@ typedef unsigned long cycles_t;
 
 static inline cycles_t get_cycles(void)
 {
-       if (IS_ENABLED(CONFIG_BOOK3S_601))
+       if (IS_ENABLED(CONFIG_PPC_BOOK3S_601))
                return 0;
 
        return mftb();