]>
Commit | Line | Data |
---|---|---|
6fa88700 GKH |
1 | From 8bc14bbefa6633971fd5f87b1410a6c9adf949a1 Mon Sep 17 00:00:00 2001 |
2 | From: Thomas Gleixner <tglx@linutronix.de> | |
3 | Date: Sun, 25 Nov 2018 19:33:37 +0100 | |
4 | Subject: [PATCH 29/76] x86/Kconfig: Select SCHED_SMT if SMP enabled | |
5 | ||
6 | commit dbe733642e01dd108f71436aaea7b328cb28fd87 upstream. | |
7 | ||
8 | CONFIG_SCHED_SMT is enabled by all distros, so there is not a real point to | |
9 | have it configurable. The runtime overhead in the core scheduler code is | |
10 | minimal because the actual SMT scheduling parts are conditional on a static | |
11 | key. | |
12 | ||
13 | This allows to expose the scheduler's SMT state static key to the | |
14 | speculation control code. Alternatively the scheduler's static key could be | |
15 | made always available when CONFIG_SMP is enabled, but that's just adding an | |
16 | unused static key to every other architecture for nothing. | |
17 | ||
18 | Signed-off-by: Thomas Gleixner <tglx@linutronix.de> | |
19 | Reviewed-by: Ingo Molnar <mingo@kernel.org> | |
20 | Cc: Peter Zijlstra <peterz@infradead.org> | |
21 | Cc: Andy Lutomirski <luto@kernel.org> | |
22 | Cc: Linus Torvalds <torvalds@linux-foundation.org> | |
23 | Cc: Jiri Kosina <jkosina@suse.cz> | |
24 | Cc: Tom Lendacky <thomas.lendacky@amd.com> | |
25 | Cc: Josh Poimboeuf <jpoimboe@redhat.com> | |
26 | Cc: Andrea Arcangeli <aarcange@redhat.com> | |
27 | Cc: David Woodhouse <dwmw@amazon.co.uk> | |
28 | Cc: Tim Chen <tim.c.chen@linux.intel.com> | |
29 | Cc: Andi Kleen <ak@linux.intel.com> | |
30 | Cc: Dave Hansen <dave.hansen@intel.com> | |
31 | Cc: Casey Schaufler <casey.schaufler@intel.com> | |
32 | Cc: Asit Mallick <asit.k.mallick@intel.com> | |
33 | Cc: Arjan van de Ven <arjan@linux.intel.com> | |
34 | Cc: Jon Masters <jcm@redhat.com> | |
35 | Cc: Waiman Long <longman9394@gmail.com> | |
36 | Cc: Greg KH <gregkh@linuxfoundation.org> | |
37 | Cc: Dave Stewart <david.c.stewart@intel.com> | |
38 | Cc: Kees Cook <keescook@chromium.org> | |
39 | Link: https://lkml.kernel.org/r/20181125185004.337452245@linutronix.de | |
40 | Signed-off-by: Ben Hutchings <ben@decadent.org.uk> | |
41 | Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> | |
42 | --- | |
43 | arch/x86/Kconfig | 8 +------- | |
44 | 1 file changed, 1 insertion(+), 7 deletions(-) | |
45 | ||
46 | diff --git a/arch/x86/Kconfig b/arch/x86/Kconfig | |
47 | index 5a4591ff8407..e0055b4302d6 100644 | |
48 | --- a/arch/x86/Kconfig | |
49 | +++ b/arch/x86/Kconfig | |
50 | @@ -937,13 +937,7 @@ config NR_CPUS | |
51 | approximately eight kilobytes to the kernel image. | |
52 | ||
53 | config SCHED_SMT | |
54 | - bool "SMT (Hyperthreading) scheduler support" | |
55 | - depends on SMP | |
56 | - ---help--- | |
57 | - SMT scheduler support improves the CPU scheduler's decision making | |
58 | - when dealing with Intel Pentium 4 chips with HyperThreading at a | |
59 | - cost of slightly increased overhead in some places. If unsure say | |
60 | - N here. | |
61 | + def_bool y if SMP | |
62 | ||
63 | config SCHED_MC | |
64 | def_bool y | |
65 | -- | |
66 | 2.21.0 | |
67 |