Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

sched: remove HZ_BW feature hedge

As a hedge against unexpected user issues commit 88c56cfeaec4
("sched/fair: Block nohz tick_stop when cfs bandwidth in use")
included a scheduler feature to disable the new functionality.
It's been a few releases (v6.6) and no screams, so remove it.

Signed-off-by: Phil Auld <pauld@redhat.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Reviewed-by: Valentin Schneider <vschneid@redhat.com>
Link: https://lore.kernel.org/r/20240515133705.3632915-1-pauld@redhat.com

authored by

Phil Auld and committed by
Peter Zijlstra
a58501fb 2c2d9624

+2 -4
+1 -1
kernel/sched/core.c
··· 1269 1269 * dequeued by migrating while the constrained task continues to run. 1270 1270 * E.g. going from 2->1 without going through pick_next_task(). 1271 1271 */ 1272 - if (sched_feat(HZ_BW) && __need_bw_check(rq, rq->curr)) { 1272 + if (__need_bw_check(rq, rq->curr)) { 1273 1273 if (cfs_task_bw_constrained(rq->curr)) 1274 1274 return false; 1275 1275 }
+1 -1
kernel/sched/fair.c
··· 6555 6555 { 6556 6556 int cpu = cpu_of(rq); 6557 6557 6558 - if (!sched_feat(HZ_BW) || !cfs_bandwidth_used()) 6558 + if (!cfs_bandwidth_used()) 6559 6559 return; 6560 6560 6561 6561 if (!tick_nohz_full_cpu(cpu))
-2
kernel/sched/features.h
··· 85 85 SCHED_FEAT(UTIL_EST, true) 86 86 87 87 SCHED_FEAT(LATENCY_WARN, false) 88 - 89 - SCHED_FEAT(HZ_BW, true)