* [RFC] sched/fair: Remove unused max_vruntime()
@ 2024-08-23 5:48 Benjamin Tang
0 siblings, 0 replies; only message in thread
From: Benjamin Tang @ 2024-08-23 5:48 UTC (permalink / raw)
To: Peter Zijlstra
Cc: Ingo Molnar, Juri Lelli, Vincent Guittot, Dietmar Eggemann,
Steven Rostedt, Ben Segall, Mel Gorman, Valentin Schneider,
linux-kernel
Since commit af4cf40470c2("sched/fair: Add cfs_rq::avg_vruntime")
max_vruntime() became an unused function, remove it.
Signed-off-by: Benjamin Tang <tangsong8264@gmail.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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2024-08-23 5:48 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-08-23 5:48 [RFC] sched/fair: Remove unused max_vruntime() Benjamin Tang
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®