mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
synced 2025-01-15 13:15:57 +00:00
sched/rt: Add reschedule check to switched_from_rt()
Reschedule rq->curr if the first RT task has just been pulled to the rq. Signed-off-by: Kirill V Tkhai <tkhai@yandex.ru> Acked-by: Steven Rostedt <rostedt@goodmis.org> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Tkhai Kirill <tkhai@yandex.ru> Cc: Thomas Gleixner <tglx@linutronix.de> Link: http://lkml.kernel.org/r/118761353614535@web28f.yandex.ru Signed-off-by: Ingo Molnar <mingo@kernel.org>
This commit is contained in:
parent
a59f4e079d
commit
1158ddb554
@ -1889,8 +1889,11 @@ static void switched_from_rt(struct rq *rq, struct task_struct *p)
|
|||||||
* we may need to handle the pulling of RT tasks
|
* we may need to handle the pulling of RT tasks
|
||||||
* now.
|
* now.
|
||||||
*/
|
*/
|
||||||
if (p->on_rq && !rq->rt.rt_nr_running)
|
if (!p->on_rq || rq->rt.rt_nr_running)
|
||||||
pull_rt_task(rq);
|
return;
|
||||||
|
|
||||||
|
if (pull_rt_task(rq))
|
||||||
|
resched_task(rq->curr);
|
||||||
}
|
}
|
||||||
|
|
||||||
void init_sched_rt_class(void)
|
void init_sched_rt_class(void)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user