[PATCH v2 12/17] sched/feature: Add STEAL_MONITOR feature

Shrikanth Hegde
2026-04-07T19:21:36Z

Add a new sched feature to do steal time calculation.
Computing steal time and acting on it periodically are to be opted by
the user. This helps to avoid any overhead when the feature
is disabled.

It is disabled by default.

Signed-off-by: Shrikanth Hegde <sshegde@linux.ibm.com>
---
kernel/sched/features.h | 3 +++
1 file changed, 3 insertions(+)

diff --git a/kernel/sched/features.h b/kernel/sched/features.h
index 84c4fe3abd74..08208bec3dd2 100644
--- a/kernel/sched/features.h
+++ b/kernel/sched/features.h
@@ -134,3 +134,6 @@ SCHED_FEAT(LATENCY_WARN, false)
*/
SCHED_FEAT(NI_RANDOM, true)
SCHED_FEAT(NI_RATE, true)
+
+/* Generic steal time monitor to act on cpu_preferred_mask */
+SCHED_FEAT(STEAL_MONITOR, false)
--
2.47.3