diff options
author | Borislav Petkov <[email protected]> | 2018-10-04 19:22:27 +0200 |
---|---|---|
committer | Ingo Molnar <[email protected]> | 2018-10-05 10:20:31 +0200 |
commit | d0e7d14455d41163126afecd0fcce935463cc512 (patch) | |
tree | 0381f921583a35bfc148c792804061b9e2cf9b54 | |
parent | 9c2298aad355d8c1957df3015448fef333526934 (diff) |
cpu/SMT: State SMT is disabled even with nosmt and without "=force"
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: Borislav Petkov <[email protected]>
Cc: Linus Torvalds <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Cc: Thomas Gleixner <[email protected]>
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Ingo Molnar <[email protected]>
-rw-r--r-- | kernel/cpu.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/kernel/cpu.c b/kernel/cpu.c index 0097acec1c71..f1338452d998 100644 --- a/kernel/cpu.c +++ b/kernel/cpu.c @@ -362,6 +362,7 @@ void __init cpu_smt_disable(bool force) pr_info("SMT: Force disabled\n"); cpu_smt_control = CPU_SMT_FORCE_DISABLED; } else { + pr_info("SMT: disabled\n"); cpu_smt_control = CPU_SMT_DISABLED; } } |