[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <172837417940.1442.13398867634108590845.tip-bot2@tip-bot2>
Date: Tue, 08 Oct 2024 07:56:19 -0000
From: "tip-bot2 for Huang Shijie" <tip-bot2@...utronix.de>
To: linux-tip-commits@...r.kernel.org
Cc: Huang Shijie <shijie@...amperecomputing.com>,
"Peter Zijlstra (Intel)" <peterz@...radead.org>,
"Christoph Lameter (Ampere)" <cl@...ux.com>,
Vishal Chourasia <vishalc@...ux.ibm.com>, x86@...nel.org,
linux-kernel@...r.kernel.org
Subject: [tip: sched/core] sched/fair: remove the DOUBLE_TICK feature
The following commit has been merged into the sched/core branch of tip:
Commit-ID: e31488c9df27aaea2cdffba688129fdeb3869650
Gitweb: https://git.kernel.org/tip/e31488c9df27aaea2cdffba688129fdeb3869650
Author: Huang Shijie <shijie@...amperecomputing.com>
AuthorDate: Tue, 01 Oct 2024 14:54:51 +08:00
Committer: Peter Zijlstra <peterz@...radead.org>
CommitterDate: Mon, 07 Oct 2024 09:28:40 +02:00
sched/fair: remove the DOUBLE_TICK feature
The patch "5e963f2bd46 sched/fair: Commit to EEVDF"
removed the code following the DOUBLE_TICK:
-
- if (!sched_feat(EEVDF) && cfs_rq->nr_running > 1)
- check_preempt_tick(cfs_rq, curr);
The DOUBLE_TICK feature becomes dead code now, so remove it.
Signed-off-by: Huang Shijie <shijie@...amperecomputing.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@...radead.org>
Reviewed-by: "Christoph Lameter (Ampere)" <cl@...ux.com>
Reviewed-by: Vishal Chourasia <vishalc@...ux.ibm.com>
Link: https://lore.kernel.org/r/20241001065451.10356-1-shijie@os.amperecomputing.com
---
kernel/sched/fair.c | 6 ------
kernel/sched/features.h | 1 -
2 files changed, 7 deletions(-)
diff --git a/kernel/sched/fair.c b/kernel/sched/fair.c
index 225b31a..c9e3b8d 100644
--- a/kernel/sched/fair.c
+++ b/kernel/sched/fair.c
@@ -5680,12 +5680,6 @@ entity_tick(struct cfs_rq *cfs_rq, struct sched_entity *curr, int queued)
resched_curr(rq_of(cfs_rq));
return;
}
- /*
- * don't let the period tick interfere with the hrtick preemption
- */
- if (!sched_feat(DOUBLE_TICK) &&
- hrtimer_active(&rq_of(cfs_rq)->hrtick_timer))
- return;
#endif
}
diff --git a/kernel/sched/features.h b/kernel/sched/features.h
index 2908740..7c22b33 100644
--- a/kernel/sched/features.h
+++ b/kernel/sched/features.h
@@ -56,7 +56,6 @@ SCHED_FEAT(WAKEUP_PREEMPTION, true)
SCHED_FEAT(HRTICK, false)
SCHED_FEAT(HRTICK_DL, false)
-SCHED_FEAT(DOUBLE_TICK, false)
/*
* Decrement CPU capacity based on time not spent running tasks
Powered by blists - more mailing lists