[<prev] [next>] [day] [month] [year] [list]
Message-ID: <51603da9-d77e-4a11-91d5-3ec1902cbb4c@gmail.com>
Date: Fri, 23 Aug 2024 13:48:09 +0800
From: Benjamin Tang <tangsong8264@...il.com>
To: Peter Zijlstra <peterz@...radead.org>
Cc: Ingo Molnar <mingo@...hat.com>, Juri Lelli <juri.lelli@...hat.com>,
Vincent Guittot <vincent.guittot@...aro.org>,
Dietmar Eggemann <dietmar.eggemann@....com>,
Steven Rostedt <rostedt@...dmis.org>, Ben Segall <bsegall@...gle.com>,
Mel Gorman <mgorman@...e.de>, Valentin Schneider <vschneid@...hat.com>,
linux-kernel@...r.kernel.org
Subject: [RFC] sched/fair: Remove unused max_vruntime()
Since commit af4cf40470c2("sched/fair: Add cfs_rq::avg_vruntime")
max_vruntime() became an unused function, remove it.
Signed-off-by: Benjamin Tang <tangsong8264@...il.com>
---
kernel/sched/fair.c | 9 ---------
1 file changed, 9 deletions(-)
diff --git a/kernel/sched/fair.c b/kernel/sched/fair.c
index 9057584ec06d..1dcaf1f5aeb5 100644
--- a/kernel/sched/fair.c
+++ b/kernel/sched/fair.c
@@ -523,15 +523,6 @@ void account_cfs_rq_runtime(struct cfs_rq *cfs_rq,
u64 delta_exec);
* Scheduling class tree data structure manipulation methods:
*/
-static inline u64 max_vruntime(u64 max_vruntime, u64 vruntime)
-{
- s64 delta = (s64)(vruntime - max_vruntime);
- if (delta > 0)
- max_vruntime = vruntime;
-
- return max_vruntime;
-}
-
static inline u64 min_vruntime(u64 min_vruntime, u64 vruntime)
{
s64 delta = (s64)(vruntime - min_vruntime);
--
2.11.0
Powered by blists - more mailing lists