summaryrefslogtreecommitdiff
path: root/kernel/sched_rt.c
diff options
context:
space:
mode:
authorIngo Molnar <mingo@elte.hu>2008-06-05 14:25:37 +0400
committerIngo Molnar <mingo@elte.hu>2008-06-06 17:19:46 +0400
commit1100ac91b6af02d8639d518fad5b434b1bf44ed6 (patch)
tree4eda0e913e8bc5437fad37b723f24eec2b4e8680 /kernel/sched_rt.c
parente539d8fcd11af811db70707d47ea436d5621d0da (diff)
downloadlinux-1100ac91b6af02d8639d518fad5b434b1bf44ed6.tar.xz
sched: fix cpuprio build bug
this patch was not built on !SMP: kernel/sched_rt.c: In function 'inc_rt_tasks': kernel/sched_rt.c:404: error: 'struct rq' has no member named 'online' Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'kernel/sched_rt.c')
-rw-r--r--kernel/sched_rt.c5
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)
#if defined CONFIG_SMP || defined CONFIG_RT_GROUP_SCHED
if (rt_se_prio(rt_se) < rt_rq->highest_prio) {
struct rq *rq = rq_of_rt_rq(rt_rq);
- rt_rq->highest_prio = rt_se_prio(rt_se);
+ rt_rq->highest_prio = rt_se_prio(rt_se);
+#ifdef CONFIG_SMP
if (rq->online)
cpupri_set(&rq->rd->cpupri, rq->cpu,
rt_se_prio(rt_se));
+#endif
}
#endif
#ifdef CONFIG_SMP
if (rt_se->nr_cpus_allowed > 1) {
struct rq *rq = rq_of_rt_rq(rt_rq);
+
rq->rt.rt_nr_migratory++;
}