提交 c732dbc1 编写于 作者: B Borislav Petkov 提交者: Xie XiuQi

cpu/SMT: State SMT is disabled even with nosmt and without "=force"

[ Upstream commit d0e7d144 ]

When booting with "nosmt=force" a message is issued into dmesg to
confirm that SMT has been force-disabled but such a message is not
issued when only "nosmt" is on the kernel command line.

Fix that.
Signed-off-by: NBorislav Petkov <bp@suse.de>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Link: http://lkml.kernel.org/r/20181004172227.10094-1-bp@alien8.deSigned-off-by: NIngo Molnar <mingo@kernel.org>
Signed-off-by: NSasha Levin <sashal@kernel.org>
Signed-off-by: NYang Yingliang <yangyingliang@huawei.com>
上级 b621bf86
...@@ -375,6 +375,7 @@ void __init cpu_smt_disable(bool force) ...@@ -375,6 +375,7 @@ void __init cpu_smt_disable(bool force)
pr_info("SMT: Force disabled\n"); pr_info("SMT: Force disabled\n");
cpu_smt_control = CPU_SMT_FORCE_DISABLED; cpu_smt_control = CPU_SMT_FORCE_DISABLED;
} else { } else {
pr_info("SMT: disabled\n");
cpu_smt_control = CPU_SMT_DISABLED; cpu_smt_control = CPU_SMT_DISABLED;
} }
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册