This source file includes following definitions.
- cpu_have_feature
1
2
3
4
5
6
7
8
9 #ifndef __ASM_POWERPC_CPUFEATURE_H
10 #define __ASM_POWERPC_CPUFEATURE_H
11
12 #include <asm/cputable.h>
13
14
15 #define MAX_CPU_FEATURES (2 * 32)
16
17
18
19
20
21
22
23
24 #define PPC_MODULE_FEATURE_VEC_CRYPTO (32 + ilog2(PPC_FEATURE2_VEC_CRYPTO))
25
26 #define cpu_feature(x) (x)
27
28 static inline bool cpu_have_feature(unsigned int num)
29 {
30 if (num < 32)
31 return !!(cur_cpu_spec->cpu_user_features & 1UL << num);
32 else
33 return !!(cur_cpu_spec->cpu_user_features2 & 1UL << (num - 32));
34 }
35
36 #endif