cpu/SMT: State SMT is disabled even with nosmt and without "=force"
authorBorislav Petkov <bp@suse.de>
Thu, 4 Oct 2018 17:22:27 +0000 (19:22 +0200)
committerIngo Molnar <mingo@kernel.org>
Fri, 5 Oct 2018 08:20:31 +0000 (10:20 +0200)
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 <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.de
Signed-off-by: Ingo Molnar <mingo@kernel.org>
kernel/cpu.c

index 0097acec1c717dee6948e50b57ab4c4bb0c15ac7..f1338452d9988ffff9b625f5043b106c322d229d 100644 (file)
@@ -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;
        }
 }