Commit a58501fb authored by Phil Auld's avatar Phil Auld Committed by Peter Zijlstra

sched: remove HZ_BW feature hedge

As a hedge against unexpected user issues commit 88c56cfe
("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: default avatarPhil Auld <pauld@redhat.com>
Signed-off-by: default avatarPeter Zijlstra (Intel) <peterz@infradead.org>
Reviewed-by: default avatarValentin Schneider <vschneid@redhat.com>
Link: https://lore.kernel.org/r/20240515133705.3632915-1-pauld@redhat.com
parent 2c2d9624
...@@ -1269,7 +1269,7 @@ bool sched_can_stop_tick(struct rq *rq) ...@@ -1269,7 +1269,7 @@ bool sched_can_stop_tick(struct rq *rq)
* dequeued by migrating while the constrained task continues to run. * dequeued by migrating while the constrained task continues to run.
* E.g. going from 2->1 without going through pick_next_task(). * E.g. going from 2->1 without going through pick_next_task().
*/ */
if (sched_feat(HZ_BW) && __need_bw_check(rq, rq->curr)) { if (__need_bw_check(rq, rq->curr)) {
if (cfs_task_bw_constrained(rq->curr)) if (cfs_task_bw_constrained(rq->curr))
return false; return false;
} }
......
...@@ -6555,7 +6555,7 @@ static void sched_fair_update_stop_tick(struct rq *rq, struct task_struct *p) ...@@ -6555,7 +6555,7 @@ static void sched_fair_update_stop_tick(struct rq *rq, struct task_struct *p)
{ {
int cpu = cpu_of(rq); int cpu = cpu_of(rq);
if (!sched_feat(HZ_BW) || !cfs_bandwidth_used()) if (!cfs_bandwidth_used())
return; return;
if (!tick_nohz_full_cpu(cpu)) if (!tick_nohz_full_cpu(cpu))
......
...@@ -85,5 +85,3 @@ SCHED_FEAT(WA_BIAS, true) ...@@ -85,5 +85,3 @@ SCHED_FEAT(WA_BIAS, true)
SCHED_FEAT(UTIL_EST, true) SCHED_FEAT(UTIL_EST, true)
SCHED_FEAT(LATENCY_WARN, false) SCHED_FEAT(LATENCY_WARN, false)
SCHED_FEAT(HZ_BW, true)
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment