Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

[POWERPC] Make 64-bit cpu features defined on 32-bit

It saves #ifdef'ing in callers if we at least define the 64-bit cpu
features for 32-bit also.

Signed-off-by: Michael Ellerman <michael@ellerman.id.au>
Signed-off-by: Arnd Bergmann <arnd.bergmann@de.ibm.com>

authored by

Michael Ellerman and committed by
Paul Mackerras
0b8e2e13 e0426047

+2 -2
+2 -2
include/asm-powerpc/cputable.h
··· 315 315 #define CPU_FTRS_E500_2 (CPU_FTR_SPLIT_ID_CACHE | CPU_FTR_USE_TB | \ 316 316 CPU_FTR_BIG_PHYS | CPU_FTR_NODSISRALIGN) 317 317 #define CPU_FTRS_GENERIC_32 (CPU_FTR_COMMON | CPU_FTR_NODSISRALIGN) 318 - #ifdef __powerpc64__ 318 + 319 + /* 64-bit CPUs */ 319 320 #define CPU_FTRS_POWER3 (CPU_FTR_SPLIT_ID_CACHE | CPU_FTR_USE_TB | \ 320 321 CPU_FTR_HPTE_TABLE | CPU_FTR_IABR | CPU_FTR_PPC_LE) 321 322 #define CPU_FTRS_RS64 (CPU_FTR_SPLIT_ID_CACHE | CPU_FTR_USE_TB | \ ··· 354 353 CPU_FTR_PURR | CPU_FTR_REAL_LE) 355 354 #define CPU_FTRS_COMPATIBLE (CPU_FTR_SPLIT_ID_CACHE | CPU_FTR_USE_TB | \ 356 355 CPU_FTR_HPTE_TABLE | CPU_FTR_PPCAS_ARCH_V2) 357 - #endif 358 356 359 357 #ifdef __powerpc64__ 360 358 #define CPU_FTRS_POSSIBLE \