diff options
Diffstat (limited to 'include/linux/cpu.h')
-rw-r--r-- | include/linux/cpu.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/cpu.h b/include/linux/cpu.h index 88dc0c653925..d0633ebdaa9c 100644 --- a/include/linux/cpu.h +++ b/include/linux/cpu.h | |||
@@ -201,12 +201,14 @@ enum cpuhp_smt_control { | |||
201 | extern enum cpuhp_smt_control cpu_smt_control; | 201 | extern enum cpuhp_smt_control cpu_smt_control; |
202 | extern void cpu_smt_disable(bool force); | 202 | extern void cpu_smt_disable(bool force); |
203 | extern void cpu_smt_check_topology(void); | 203 | extern void cpu_smt_check_topology(void); |
204 | extern bool cpu_smt_possible(void); | ||
204 | extern int cpuhp_smt_enable(void); | 205 | extern int cpuhp_smt_enable(void); |
205 | extern int cpuhp_smt_disable(enum cpuhp_smt_control ctrlval); | 206 | extern int cpuhp_smt_disable(enum cpuhp_smt_control ctrlval); |
206 | #else | 207 | #else |
207 | # define cpu_smt_control (CPU_SMT_NOT_IMPLEMENTED) | 208 | # define cpu_smt_control (CPU_SMT_NOT_IMPLEMENTED) |
208 | static inline void cpu_smt_disable(bool force) { } | 209 | static inline void cpu_smt_disable(bool force) { } |
209 | static inline void cpu_smt_check_topology(void) { } | 210 | static inline void cpu_smt_check_topology(void) { } |
211 | static inline bool cpu_smt_possible(void) { return false; } | ||
210 | static inline int cpuhp_smt_enable(void) { return 0; } | 212 | static inline int cpuhp_smt_enable(void) { return 0; } |
211 | static inline int cpuhp_smt_disable(enum cpuhp_smt_control ctrlval) { return 0; } | 213 | static inline int cpuhp_smt_disable(enum cpuhp_smt_control ctrlval) { return 0; } |
212 | #endif | 214 | #endif |