diff options
| -rw-r--r-- | kernel/cpu.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/kernel/cpu.c b/kernel/cpu.c index 91d5c38eb7e5..c0c7f64573ed 100644 --- a/kernel/cpu.c +++ b/kernel/cpu.c | |||
| @@ -2090,10 +2090,8 @@ static int cpuhp_smt_disable(enum cpuhp_smt_control ctrlval) | |||
| 2090 | */ | 2090 | */ |
| 2091 | cpuhp_offline_cpu_device(cpu); | 2091 | cpuhp_offline_cpu_device(cpu); |
| 2092 | } | 2092 | } |
| 2093 | if (!ret) { | 2093 | if (!ret) |
| 2094 | cpu_smt_control = ctrlval; | 2094 | cpu_smt_control = ctrlval; |
| 2095 | arch_smt_update(); | ||
| 2096 | } | ||
| 2097 | cpu_maps_update_done(); | 2095 | cpu_maps_update_done(); |
| 2098 | return ret; | 2096 | return ret; |
| 2099 | } | 2097 | } |
| @@ -2104,7 +2102,6 @@ static int cpuhp_smt_enable(void) | |||
| 2104 | 2102 | ||
| 2105 | cpu_maps_update_begin(); | 2103 | cpu_maps_update_begin(); |
| 2106 | cpu_smt_control = CPU_SMT_ENABLED; | 2104 | cpu_smt_control = CPU_SMT_ENABLED; |
| 2107 | arch_smt_update(); | ||
| 2108 | for_each_present_cpu(cpu) { | 2105 | for_each_present_cpu(cpu) { |
| 2109 | /* Skip online CPUs and CPUs on offline nodes */ | 2106 | /* Skip online CPUs and CPUs on offline nodes */ |
| 2110 | if (cpu_online(cpu) || !node_online(cpu_to_node(cpu))) | 2107 | if (cpu_online(cpu) || !node_online(cpu_to_node(cpu))) |
