diff options
Diffstat (limited to 'kernel/sched_rt.c')
-rw-r--r-- | kernel/sched_rt.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/kernel/sched_rt.c b/kernel/sched_rt.c index 9becc3710b60..72c81322fb9a 100644 --- a/kernel/sched_rt.c +++ b/kernel/sched_rt.c | |||
@@ -176,7 +176,8 @@ static int select_task_rq_rt(struct task_struct *p, int sync) | |||
176 | * that is just being woken and probably will have | 176 | * that is just being woken and probably will have |
177 | * cold cache anyway. | 177 | * cold cache anyway. |
178 | */ | 178 | */ |
179 | if (unlikely(rt_task(rq->curr))) { | 179 | if (unlikely(rt_task(rq->curr)) && |
180 | (p->nr_cpus_allowed > 1)) { | ||
180 | int cpu = find_lowest_rq(p); | 181 | int cpu = find_lowest_rq(p); |
181 | 182 | ||
182 | return (cpu == -1) ? task_cpu(p) : cpu; | 183 | return (cpu == -1) ? task_cpu(p) : cpu; |