[PATCH] sched/core: Remove obsolete comment about SCHED_DEBUG

From: Andrea Righi
Date: Fri Apr 18 2025 - 04:12:27 EST


Now that SCHED_DEBUG is always implicitly enabled, the comment about
having multiple sysctl_sched_features in each compilation unit is no
longer accurate and it can be misleading, so drop it for clarity.

Fixes: dd5bdaf2b72da ("sched/debug: Make CONFIG_SCHED_DEBUG functionality unconditional")
Signed-off-by: Andrea Righi <arighi@xxxxxxxxxx>
---
kernel/sched/core.c | 4 ----
1 file changed, 4 deletions(-)

diff --git a/kernel/sched/core.c b/kernel/sched/core.c
index c81cf642dba05..51370ab9fe7e4 100644
--- a/kernel/sched/core.c
+++ b/kernel/sched/core.c
@@ -120,10 +120,6 @@ DEFINE_PER_CPU_SHARED_ALIGNED(struct rq, runqueues);

/*
* Debugging: various feature bits
- *
- * If SCHED_DEBUG is disabled, each compilation unit has its own copy of
- * sysctl_sched_features, defined in sched.h, to allow constants propagation
- * at compile time and compiler optimization based on features default.
*/
#define SCHED_FEAT(name, enabled) \
(1UL << __SCHED_FEAT_##name) * enabled |
--
2.49.0