[RFC] sched/fair: Remove unused max_vruntime()
From: Benjamin Tang
Date: Fri Aug 23 2024 - 01:48:31 EST
Since commit af4cf40470c2("sched/fair: Add cfs_rq::avg_vruntime")
max_vruntime() became an unused function, remove it.
Signed-off-by: Benjamin Tang <tangsong8264@xxxxxxxxx>
---
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