projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4aa9fc2
)
x86/speculation: Remove redundant arch_smt_update() invocation
author
Zhenzhong Duan
<
[email protected]
>
Thu, 17 Jan 2019 10:10:59 +0000
(
02:10
-0800)
committer
Thomas Gleixner
<
[email protected]
>
Tue, 29 Jan 2019 21:20:24 +0000
(22:20 +0100)
With commit
a74cfffb03b7
("x86/speculation: Rework SMT state change"),
arch_smt_update() is invoked from each individual CPU hotplug function.
Therefore the extra arch_smt_update() call in the sysfs SMT control is
redundant.
Fixes: a74cfffb03b7 ("x86/speculation: Rework SMT state change")
Signed-off-by: Zhenzhong Duan <
[email protected]
>
Signed-off-by: Thomas Gleixner <
[email protected]
>
Cc: <
[email protected]
>
Cc: <
[email protected]
>
Cc: <
[email protected]
>
Cc: <
[email protected]
>
Cc: <
[email protected]
>
Cc: <
[email protected]
>
Link:
https://lkml.kernel.org/r/e2e064f2-e8ef-42ca-bf4f-76b612964752@default
kernel/cpu.c
patch
|
blob
|
history
diff --git
a/kernel/cpu.c
b/kernel/cpu.c
index 91d5c38eb7e5b91a5d2cf821414f7cbbaa854c7a..c0c7f64573ed457fb22e6de5411a38c8a6e0ab66 100644
(file)
--- a/
kernel/cpu.c
+++ b/
kernel/cpu.c
@@
-2090,10
+2090,8
@@
static int cpuhp_smt_disable(enum cpuhp_smt_control ctrlval)
*/
cpuhp_offline_cpu_device(cpu);
}
- if (!ret)
{
+ if (!ret)
cpu_smt_control = ctrlval;
- arch_smt_update();
- }
cpu_maps_update_done();
return ret;
}
@@
-2104,7
+2102,6
@@
static int cpuhp_smt_enable(void)
cpu_maps_update_begin();
cpu_smt_control = CPU_SMT_ENABLED;
- arch_smt_update();
for_each_present_cpu(cpu) {
/* Skip online CPUs and CPUs on offline nodes */
if (cpu_online(cpu) || !node_online(cpu_to_node(cpu)))