mirror of
https://github.com/torvalds/linux.git
synced 2026-05-27 16:44:58 +02:00
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 <mingo@kernel.org> Acked-by: Peter Zijlstra <peterz@infradead.org> Cc: Dietmar Eggemann <dietmar.eggemann@arm.com> Cc: Juri Lelli <juri.lelli@redhat.com> Cc: Linus Torvalds <torvalds@linux-foundation.org> Cc: Mel Gorman <mgorman@suse.de> Cc: Sebastian Andrzej Siewior <bigeasy@linutronix.de> Cc: Shrikanth Hegde <sshegde@linux.ibm.com> Cc: Steven Rostedt <rostedt@goodmis.org> Cc: Valentin Schneider <vschneid@redhat.com> Cc: Vincent Guittot <vincent.guittot@linaro.org> Link: https://lore.kernel.org/r/20250528080924.2273858-30-mingo@kernel.org
This commit is contained in:
parent
15125a229a
commit
6324dce8f6
|
|
@ -3005,7 +3005,6 @@ static void prio_changed_dl(struct rq *rq, struct task_struct *p,
|
|||
if (!task_on_rq_queued(p))
|
||||
return;
|
||||
|
||||
#ifdef CONFIG_SMP
|
||||
/*
|
||||
* This might be too much, but unfortunately
|
||||
* 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,
|
|||
dl_time_before(p->dl.deadline, rq->curr->dl.deadline))
|
||||
resched_curr(rq);
|
||||
}
|
||||
#else /* !CONFIG_SMP: */
|
||||
/*
|
||||
* We don't know if p has a earlier or later deadline, so let's blindly
|
||||
* set a (maybe not needed) rescheduling point.
|
||||
*/
|
||||
resched_curr(rq);
|
||||
#endif /* !CONFIG_SMP */
|
||||
}
|
||||
|
||||
#ifdef CONFIG_SCHED_CORE
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user