diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/cpu.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/include/linux/cpu.h b/include/linux/cpu.h index 0c0c614245e5..bb8fa64fbea3 100644 --- a/include/linux/cpu.h +++ b/include/linux/cpu.h @@ -257,4 +257,17 @@ void cpuhp_report_idle_dead(void); static inline void cpuhp_report_idle_dead(void) { } #endif /* #ifdef CONFIG_HOTPLUG_CPU */ +enum cpuhp_smt_control { + CPU_SMT_ENABLED, + CPU_SMT_DISABLED, + CPU_SMT_FORCE_DISABLED, + CPU_SMT_NOT_SUPPORTED, +}; + +#if defined(CONFIG_SMP) && defined(CONFIG_HOTPLUG_SMT) +extern enum cpuhp_smt_control cpu_smt_control; +#else +# define cpu_smt_control (CPU_SMT_ENABLED) +#endif + #endif /* _LINUX_CPU_H_ */ |