sched: remove HZ_BW feature hedge

JIRA: https://issues.redhat.com/browse/RHEL-78821
Conflicts: Minor context difference in features.h.

commit a58501fb8320d6232507f722b4c9dcd4e03362ee
Author: Phil Auld <pauld@redhat.com>
Date:   Wed May 15 09:37:05 2024 -0400

    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

Signed-off-by: Phil Auld <pauld@redhat.com>
This commit is contained in:
Phil Auld 2025-02-12 15:24:34 +00:00
parent 4ad80b377f
commit 5b8b5283a9
3 changed files with 2 additions and 4 deletions

View File

@ -1308,7 +1308,7 @@ bool sched_can_stop_tick(struct rq *rq)
* dequeued by migrating while the constrained task continues to run.
* 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))
return false;
}

View File

@ -6357,7 +6357,7 @@ static void sched_fair_update_stop_tick(struct rq *rq, struct task_struct *p)
{
int cpu = cpu_of(rq);
if (!sched_feat(HZ_BW) || !cfs_bandwidth_used())
if (!cfs_bandwidth_used())
return;
if (!tick_nohz_full_cpu(cpu))

View File

@ -102,5 +102,3 @@ SCHED_FEAT(LATENCY_WARN, false)
SCHED_FEAT(ALT_PERIOD, true)
SCHED_FEAT(BASE_SLICE, true)
SCHED_FEAT(HZ_BW, true)