diff options
-rw-r--r-- | kernel/sched_rt.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/kernel/sched_rt.c b/kernel/sched_rt.c index e4821593d4de..eaa606071d51 100644 --- a/kernel/sched_rt.c +++ b/kernel/sched_rt.c | |||
@@ -399,16 +399,19 @@ void inc_rt_tasks(struct sched_rt_entity *rt_se, struct rt_rq *rt_rq) | |||
399 | #if defined CONFIG_SMP || defined CONFIG_RT_GROUP_SCHED | 399 | #if defined CONFIG_SMP || defined CONFIG_RT_GROUP_SCHED |
400 | if (rt_se_prio(rt_se) < rt_rq->highest_prio) { | 400 | if (rt_se_prio(rt_se) < rt_rq->highest_prio) { |
401 | struct rq *rq = rq_of_rt_rq(rt_rq); | 401 | struct rq *rq = rq_of_rt_rq(rt_rq); |
402 | rt_rq->highest_prio = rt_se_prio(rt_se); | ||
403 | 402 | ||
403 | rt_rq->highest_prio = rt_se_prio(rt_se); | ||
404 | #ifdef CONFIG_SMP | ||
404 | if (rq->online) | 405 | if (rq->online) |
405 | cpupri_set(&rq->rd->cpupri, rq->cpu, | 406 | cpupri_set(&rq->rd->cpupri, rq->cpu, |
406 | rt_se_prio(rt_se)); | 407 | rt_se_prio(rt_se)); |
408 | #endif | ||
407 | } | 409 | } |
408 | #endif | 410 | #endif |
409 | #ifdef CONFIG_SMP | 411 | #ifdef CONFIG_SMP |
410 | if (rt_se->nr_cpus_allowed > 1) { | 412 | if (rt_se->nr_cpus_allowed > 1) { |
411 | struct rq *rq = rq_of_rt_rq(rt_rq); | 413 | struct rq *rq = rq_of_rt_rq(rt_rq); |
414 | |||
412 | rq->rt.rt_nr_migratory++; | 415 | rq->rt.rt_nr_migratory++; |
413 | } | 416 | } |
414 | 417 | ||