Skip to contentSkip to conversation

sched/fair: Remove unused max_vruntime()

RFC New Benjamin Tang 1 participant 1 message Aug 23, 2024 Scheduler

lore
Share & tools
lore
#0 lore raw

RFC 1/1 sched/fair: Remove unused max_vruntime()

Since commit af4cf40470c2("sched/fair: Add cfs_rq::avg_vruntime") max_vruntime() became an unused function, remove it.

---
 kernel/sched/fair.c | 9 ---------

 1 file changed, 9 deletions(-)
kernel/sched/fair.c +0 -0
index 9057584ec06d..1dcaf1f5aeb5 100644
@@ -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