Lines Matching defs:feature
10 static __always_inline bool early_cpu_has_feature(unsigned long feature)
12 return !!((CPU_FTRS_ALWAYS & feature) ||
13 (CPU_FTRS_POSSIBLE & cur_cpu_spec->cpu_features & feature));
23 static __always_inline bool cpu_has_feature(unsigned long feature)
28 BUILD_BUG_ON(!__builtin_constant_p(feature));
35 return early_cpu_has_feature(feature);
39 if (CPU_FTRS_ALWAYS & feature)
42 if (!(CPU_FTRS_POSSIBLE & feature))
45 i = __builtin_ctzl(feature);
49 static __always_inline bool cpu_has_feature(unsigned long feature)
51 return early_cpu_has_feature(feature);