1 #ifndef __ASM_POWERPC_CPUFEATURES_H
2 #define __ASM_POWERPC_CPUFEATURES_H
6 #include <asm/cputable.h>
8 static inline bool early_cpu_has_feature(unsigned long feature)
10 return !!((CPU_FTRS_ALWAYS & feature) ||
11 (CPU_FTRS_POSSIBLE & cur_cpu_spec->cpu_features & feature));
14 static inline bool cpu_has_feature(unsigned long feature)
16 return early_cpu_has_feature(feature);
19 #endif /* __ASSEMBLY__ */
20 #endif /* __ASM_POWERPC_CPUFEATURE_H */