mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2025-01-09 22:50:41 +00:00
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
This commit is contained in:
parent
2c2d962469
commit
a58501fb83
@ -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)
|
|||||||
{
|
{
|
||||||
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)
|
|||||||
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)
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user