[PATCH 1/3] sched/fair: Remove unused sched_fair_runnable()

Zhan Xusheng <[email protected]>
Newsgroups gmane.linux.kernel
Message-ID <[email protected]>
The last caller of sched_fair_runnable() was removed by commit
50653216e4ff ("sched: Add support to pick functions to take rf").  Its
siblings sched_dl_runnable() and sched_rt_runnable() are still used, but
the fair variant is now dead.

As a static inline it does not trigger -Wunused-function, so it has gone
unnoticed.  Remove it.  No functional change.

Signed-off-by: Zhan Xusheng <[email protected]>
---
 kernel/sched/sched.h | 5 -----
 1 file changed, 5 deletions(-)

diff --git a/kernel/sched/sched.h b/kernel/sched/sched.h
index 56acf502ba26..4cc38c58d108 100644
--- a/kernel/sched/sched.h
+++ b/kernel/sched/sched.h
@@ -2851,11 +2851,6 @@ static inline bool sched_rt_runnable(struct rq *rq)
 	return rq->rt.rt_queued > 0;
 }
 
-static inline bool sched_fair_runnable(struct rq *rq)
-{
-	return rq->cfs.nr_queued > 0;
-}
-
 extern struct task_struct *pick_task_fair(struct rq *rq, struct rq_flags *rf);
 extern struct task_struct *pick_task_idle(struct rq *rq, struct rq_flags *rf);
 
-- 
2.43.0
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.