diff options
Diffstat (limited to 'kernel')
-rw-r--r-- | kernel/sched_rt.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/kernel/sched_rt.c b/kernel/sched_rt.c index 10d018212ba..17f2319d5e4 100644 --- a/kernel/sched_rt.c +++ b/kernel/sched_rt.c | |||
@@ -1038,7 +1038,7 @@ select_task_rq_rt(struct task_struct *p, int sd_flag, int flags) | |||
1038 | */ | 1038 | */ |
1039 | if (curr && unlikely(rt_task(curr)) && | 1039 | if (curr && unlikely(rt_task(curr)) && |
1040 | (curr->rt.nr_cpus_allowed < 2 || | 1040 | (curr->rt.nr_cpus_allowed < 2 || |
1041 | curr->prio < p->prio) && | 1041 | curr->prio <= p->prio) && |
1042 | (p->rt.nr_cpus_allowed > 1)) { | 1042 | (p->rt.nr_cpus_allowed > 1)) { |
1043 | int target = find_lowest_rq(p); | 1043 | int target = find_lowest_rq(p); |
1044 | 1044 | ||
@@ -1569,7 +1569,7 @@ static void task_woken_rt(struct rq *rq, struct task_struct *p) | |||
1569 | p->rt.nr_cpus_allowed > 1 && | 1569 | p->rt.nr_cpus_allowed > 1 && |
1570 | rt_task(rq->curr) && | 1570 | rt_task(rq->curr) && |
1571 | (rq->curr->rt.nr_cpus_allowed < 2 || | 1571 | (rq->curr->rt.nr_cpus_allowed < 2 || |
1572 | rq->curr->prio < p->prio)) | 1572 | rq->curr->prio <= p->prio)) |
1573 | push_rt_tasks(rq); | 1573 | push_rt_tasks(rq); |
1574 | } | 1574 | } |
1575 | 1575 | ||