Commit 1158ddb5 authored by Kirill Tkhai's avatar Kirill Tkhai Committed by Ingo Molnar
Browse files

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: default avatarKirill V Tkhai <>
Acked-by: default avatarSteven Rostedt <>
Cc: Peter Zijlstra <>
Cc: Tkhai Kirill <>
Cc: Thomas Gleixner <>

Signed-off-by: default avatarIngo Molnar <>
parent a59f4e07
......@@ -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
* now.
if (p->on_rq && !rq->rt.rt_nr_running)
if (!p->on_rq || rq->rt.rt_nr_running)
if (pull_rt_task(rq))
void init_sched_rt_class(void)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment