Skip to content

Commit 8d1eeab

Browse files
chleroympe
authored andcommitted
powerpc/feature: Use CONFIG_PPC64 instead of __powerpc64__ to define possible features
In order to build VDSO32 for PPC64, we need to have CPU_FTRS_POSSIBLE and CPU_FTRS_ALWAYS independant of whether we are building the 32 bits VDSO or the 64 bits VDSO. Use #ifdef CONFIG_PPC64 instead of #ifdef __powerpc64__ Signed-off-by: Christophe Leroy <[email protected]> Signed-off-by: Michael Ellerman <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent bae80c2 commit 8d1eeab

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

arch/powerpc/include/asm/cputable.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -488,7 +488,7 @@ static inline void cpu_feature_keys_init(void) { }
488488
CPU_FTR_PURR | CPU_FTR_REAL_LE | CPU_FTR_DABRX)
489489
#define CPU_FTRS_COMPATIBLE (CPU_FTR_PPCAS_ARCH_V2)
490490

491-
#ifdef __powerpc64__
491+
#ifdef CONFIG_PPC64
492492
#ifdef CONFIG_PPC_BOOK3E
493493
#define CPU_FTRS_POSSIBLE (CPU_FTRS_E6500 | CPU_FTRS_E5500)
494494
#else
@@ -545,7 +545,7 @@ enum {
545545
};
546546
#endif /* __powerpc64__ */
547547

548-
#ifdef __powerpc64__
548+
#ifdef CONFIG_PPC64
549549
#ifdef CONFIG_PPC_BOOK3E
550550
#define CPU_FTRS_ALWAYS (CPU_FTRS_E6500 & CPU_FTRS_E5500)
551551
#else

0 commit comments

Comments
 (0)