Skip to content

Commit 71d2974

Browse files
deggemanPeter Zijlstra
authored andcommitted
sched/deadline,rt: Remove unused functions for !CONFIG_SMP
The need_pull_[rt|dl]_task() and pull_[rt|dl]_task() functions are not used on a !CONFIG_SMP system. Remove them. Signed-off-by: Dietmar Eggemann <[email protected]> Signed-off-by: Peter Zijlstra (Intel) <[email protected]> Acked-by: Juri Lelli <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent f4478e7 commit 71d2974

File tree

2 files changed

+0
-20
lines changed

2 files changed

+0
-20
lines changed

kernel/sched/deadline.c

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -723,15 +723,6 @@ void dec_dl_migration(struct sched_dl_entity *dl_se, struct dl_rq *dl_rq)
723723
{
724724
}
725725

726-
static inline bool need_pull_dl_task(struct rq *rq, struct task_struct *prev)
727-
{
728-
return false;
729-
}
730-
731-
static inline void pull_dl_task(struct rq *rq)
732-
{
733-
}
734-
735726
static inline void deadline_queue_push_tasks(struct rq *rq)
736727
{
737728
}

kernel/sched/rt.c

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -271,8 +271,6 @@ int alloc_rt_sched_group(struct task_group *tg, struct task_group *parent)
271271

272272
#ifdef CONFIG_SMP
273273

274-
static void pull_rt_task(struct rq *this_rq);
275-
276274
static inline bool need_pull_rt_task(struct rq *rq, struct task_struct *prev)
277275
{
278276
/* Try to pull RT tasks here if we lower this rq's prio */
@@ -429,15 +427,6 @@ void dec_rt_migration(struct sched_rt_entity *rt_se, struct rt_rq *rt_rq)
429427
{
430428
}
431429

432-
static inline bool need_pull_rt_task(struct rq *rq, struct task_struct *prev)
433-
{
434-
return false;
435-
}
436-
437-
static inline void pull_rt_task(struct rq *this_rq)
438-
{
439-
}
440-
441430
static inline void rt_queue_push_tasks(struct rq *rq)
442431
{
443432
}

0 commit comments

Comments
 (0)