Lines Matching full:feature
10 static __always_inline bool early_cpu_has_feature(unsigned long feature) in early_cpu_has_feature() argument
12 return !!((CPU_FTRS_ALWAYS & feature) || in early_cpu_has_feature()
13 (CPU_FTRS_POSSIBLE & cur_cpu_spec->cpu_features & feature)); in early_cpu_has_feature()
23 static __always_inline bool cpu_has_feature(unsigned long feature) in cpu_has_feature() argument
27 BUILD_BUG_ON(!__builtin_constant_p(feature)); in cpu_has_feature()
28 BUILD_BUG_ON(__builtin_popcountl(feature) > 1); in cpu_has_feature()
34 return early_cpu_has_feature(feature); in cpu_has_feature()
38 if (CPU_FTRS_ALWAYS & feature) in cpu_has_feature()
41 if (!(CPU_FTRS_POSSIBLE & feature)) in cpu_has_feature()
44 i = __builtin_ctzl(feature); in cpu_has_feature()
48 static __always_inline bool cpu_has_feature(unsigned long feature) in cpu_has_feature() argument
50 return early_cpu_has_feature(feature); in cpu_has_feature()