[PATCH] sched/core: Disable CONFIG_SCHED_CORE by default

From: Ingo Molnar
Date: Mon Jun 28 2021 - 15:57:38 EST



* Linus Torvalds <torvalds@xxxxxxxxxxxxxxxxxxxx> wrote:

> On Sun, Jun 27, 2021 at 11:51 PM Ingo Molnar <mingo@xxxxxxxxxx> wrote:
> >
> > - Add "Core Scheduling" via CONFIG_SCHED_CORE=y,
>
> Grr.
>
> Why is this feature "default y"? I see no reason why anybody would
> enable it outside of cloud providers, which doesn't argue for it being
> on by default.

You are completely right, I missed this. Find below the patch to fix it -
feel free to apply it directly, will rebase sched/urgent accordingly.

Thanks,

Ingo

=====================>
From: Ingo Molnar <mingo@xxxxxxxxxx>
Date: Mon, 28 Jun 2021 21:55:16 +0200
Subject: [PATCH] sched/core: Disable CONFIG_SCHED_CORE by default

This option adds extra overhead to the scheduler, and most users wouldn't want it.

Reported-by: Linus Torvalds <torvalds@xxxxxxxxxxxxxxxxxxxx>
Signed-off-by: Ingo Molnar <mingo@xxxxxxxxxx>
---
kernel/Kconfig.preempt | 1 -
1 file changed, 1 deletion(-)

diff --git a/kernel/Kconfig.preempt b/kernel/Kconfig.preempt
index bd7c4147b9a8..3654a92e7e70 100644
--- a/kernel/Kconfig.preempt
+++ b/kernel/Kconfig.preempt
@@ -102,7 +102,6 @@ config PREEMPT_DYNAMIC

config SCHED_CORE
bool "Core Scheduling for SMT"
- default y
depends on SCHED_SMT
help
This option permits Core Scheduling, a means of coordinated task