cpu_smt_control
cpu_smt_control = CPU_SMT_ENABLED;
if (cpu_smt_control != CPU_SMT_ENABLED)
enum cpuhp_smt_control old = cpu_smt_control;
extern enum cpuhp_smt_control cpu_smt_control;
cpu_smt_control = ctrlval;
cpu_smt_control = CPU_SMT_ENABLED;
if (cpu_smt_control == CPU_SMT_FORCE_DISABLED)
if (cpu_smt_control == CPU_SMT_NOT_SUPPORTED)
force_off = ctrlval != cpu_smt_control && ctrlval == CPU_SMT_FORCE_DISABLED;
const char *state = smt_states[cpu_smt_control];
if (cpu_smt_control == CPU_SMT_ENABLED &&
enum cpuhp_smt_control cpu_smt_control __read_mostly = CPU_SMT_ENABLED;
cpu_smt_control = CPU_SMT_FORCE_DISABLED;
cpu_smt_control = CPU_SMT_DISABLED;
cpu_smt_control = CPU_SMT_NOT_SUPPORTED;
if (cpu_smt_control != CPU_SMT_ENABLED)
if (cpu_smt_control == CPU_SMT_ENABLED && cpu_smt_thread_allowed(cpu))
if (cpu_smt_control == CPU_SMT_NOT_IMPLEMENTED)
if (cpu_smt_control == CPU_SMT_NOT_SUPPORTED)
return cpu_smt_control != CPU_SMT_FORCE_DISABLED &&
cpu_smt_control != CPU_SMT_NOT_SUPPORTED;