[Patch v6 07/16] x86/smt: Convert cpu_smt_control check to cpu_smt_enabled static key

2018-11-20 Thread Tim Chen
The checks to cpu_smt_control outside of kernel/cpu.c can be converted to use cpu_smt_enabled key to run SMT specific code. Save the export of cpu_smt_control and convert usage of cpu_smt_control to cpu_smt_enabled outside of kernel/cpu.c. Signed-off-by: Tim Chen --- arch/x86/kernel/cpu/bugs.c

[Patch v6 07/16] x86/smt: Convert cpu_smt_control check to cpu_smt_enabled static key

2018-11-20 Thread Tim Chen
The checks to cpu_smt_control outside of kernel/cpu.c can be converted to use cpu_smt_enabled key to run SMT specific code. Save the export of cpu_smt_control and convert usage of cpu_smt_control to cpu_smt_enabled outside of kernel/cpu.c. Signed-off-by: Tim Chen --- arch/x86/kernel/cpu/bugs.c