* [PATCH] SMT: State SMT is disabled even with nosmt and without "=force"
@ 2018-10-04 17:22 Borislav Petkov
2018-10-05 8:29 ` [tip:sched/core] cpu/SMT: " tip-bot for Borislav Petkov
0 siblings, 1 reply; 2+ messages in thread
From: Borislav Petkov @ 2018-10-04 17:22 UTC (permalink / raw)
To: LKML; +Cc: Peter Zijlstra, x86
From: Borislav Petkov <bp@suse.de>
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: Peter Zijlstra <peterz@infradead.org>
Cc: x86@kernel.org
---
kernel/cpu.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/kernel/cpu.c b/kernel/cpu.c
index 668c8553e171..3c7f3b4c453c 100644
--- a/kernel/cpu.c
+++ b/kernel/cpu.c
@@ -383,6 +383,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;
}
}
--
2.19.0.271.gfe8321ec057f
^ permalink raw reply [flat|nested] 2+ messages in thread
* [tip:sched/core] cpu/SMT: State SMT is disabled even with nosmt and without "=force"
2018-10-04 17:22 [PATCH] SMT: State SMT is disabled even with nosmt and without "=force" Borislav Petkov
@ 2018-10-05 8:29 ` tip-bot for Borislav Petkov
0 siblings, 0 replies; 2+ messages in thread
From: tip-bot for Borislav Petkov @ 2018-10-05 8:29 UTC (permalink / raw)
To: linux-tip-commits; +Cc: mingo, peterz, linux-kernel, hpa, bp, tglx, torvalds
Commit-ID: d0e7d14455d41163126afecd0fcce935463cc512
Gitweb: https://git.kernel.org/tip/d0e7d14455d41163126afecd0fcce935463cc512
Author: Borislav Petkov <bp@suse.de>
AuthorDate: Thu, 4 Oct 2018 19:22:27 +0200
Committer: Ingo Molnar <mingo@kernel.org>
CommitDate: Fri, 5 Oct 2018 10:20:31 +0200
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 <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 | 1 +
1 file changed, 1 insertion(+)
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;
}
}
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2018-10-05 8:29 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-10-04 17:22 [PATCH] SMT: State SMT is disabled even with nosmt and without "=force" Borislav Petkov
2018-10-05 8:29 ` [tip:sched/core] cpu/SMT: " tip-bot for Borislav Petkov
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Powered by JetHome