Skip to content

Commit 6324dce

Browse files
author
Ingo Molnar
committed
sched/smp: Use the SMP version of the deadline scheduling class
Simplify the scheduler by making CONFIG_SMP=y code in prio_changed_dl() unconditional. Signed-off-by: Ingo Molnar <[email protected]> Acked-by: Peter Zijlstra <[email protected]> Cc: Dietmar Eggemann <[email protected]> Cc: Juri Lelli <[email protected]> Cc: Linus Torvalds <[email protected]> Cc: Mel Gorman <[email protected]> Cc: Sebastian Andrzej Siewior <[email protected]> Cc: Shrikanth Hegde <[email protected]> Cc: Steven Rostedt <[email protected]> Cc: Valentin Schneider <[email protected]> Cc: Vincent Guittot <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent 15125a2 commit 6324dce

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

kernel/sched/deadline.c

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3005,7 +3005,6 @@ static void prio_changed_dl(struct rq *rq, struct task_struct *p,
30053005
if (!task_on_rq_queued(p))
30063006
return;
30073007

3008-
#ifdef CONFIG_SMP
30093008
/*
30103009
* This might be too much, but unfortunately
30113010
* we don't have the old deadline value, and
@@ -3034,13 +3033,6 @@ static void prio_changed_dl(struct rq *rq, struct task_struct *p,
30343033
dl_time_before(p->dl.deadline, rq->curr->dl.deadline))
30353034
resched_curr(rq);
30363035
}
3037-
#else /* !CONFIG_SMP: */
3038-
/*
3039-
* We don't know if p has a earlier or later deadline, so let's blindly
3040-
* set a (maybe not needed) rescheduling point.
3041-
*/
3042-
resched_curr(rq);
3043-
#endif /* !CONFIG_SMP */
30443036
}
30453037

30463038
#ifdef CONFIG_SCHED_CORE

0 commit comments

Comments
 (0)