diff options
-rw-r--r-- | kernel/sched_rt.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/kernel/sched_rt.c b/kernel/sched_rt.c index 61d198845f00..b8435fd47f78 100644 --- a/kernel/sched_rt.c +++ b/kernel/sched_rt.c | |||
@@ -242,8 +242,7 @@ static int pick_rt_task(struct rq *rq, struct task_struct *p, int cpu) | |||
242 | } | 242 | } |
243 | 243 | ||
244 | /* Return the second highest RT task, NULL otherwise */ | 244 | /* Return the second highest RT task, NULL otherwise */ |
245 | static struct task_struct *pick_next_highest_task_rt(struct rq *rq, | 245 | static struct task_struct *pick_next_highest_task_rt(struct rq *rq, int cpu) |
246 | int cpu) | ||
247 | { | 246 | { |
248 | struct rt_prio_array *array = &rq->rt.active; | 247 | struct rt_prio_array *array = &rq->rt.active; |
249 | struct task_struct *next; | 248 | struct task_struct *next; |
@@ -270,7 +269,8 @@ static struct task_struct *pick_next_highest_task_rt(struct rq *rq, | |||
270 | 269 | ||
271 | if (queue->next->next != queue) { | 270 | if (queue->next->next != queue) { |
272 | /* same prio task */ | 271 | /* same prio task */ |
273 | next = list_entry(queue->next->next, struct task_struct, run_list); | 272 | next = list_entry(queue->next->next, struct task_struct, |
273 | run_list); | ||
274 | if (pick_rt_task(rq, next, cpu)) | 274 | if (pick_rt_task(rq, next, cpu)) |
275 | goto out; | 275 | goto out; |
276 | } | 276 | } |