Skip to contentSkip to conversation

sched/core: Remove obsolete comment about SCHED_DEBUG

PATCH New Andrea Righi 1 participant 1 message Apr 18, 2025 Scheduler

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 sched/core: Remove obsolete comment about SCHED_DEBUG

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")
---
 kernel/sched/core.c | 4 ----
 1 file changed, 4 deletions(-)
kernel/sched/core.c +0 -4
index c81cf642dba05..51370ab9fe7e4 100644
@@ -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 |
Signature · 1 line
2.49.0