]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - kernel/sched_rt.c
sched: fix warning in inc_rt_tasks() to not declare variable 'rq' if it's not needed
[linux-2.6-omap-h63xx.git] / kernel / sched_rt.c
index 47ceac9e8552f309930c9f9af4d4131fd18ca8f3..147004c651c09dcb44f51cff5f86a67296e77aaa 100644 (file)
@@ -505,7 +505,9 @@ void inc_rt_tasks(struct sched_rt_entity *rt_se, struct rt_rq *rt_rq)
        rt_rq->rt_nr_running++;
 #if defined CONFIG_SMP || defined CONFIG_RT_GROUP_SCHED
        if (rt_se_prio(rt_se) < rt_rq->highest_prio) {
+#ifdef CONFIG_SMP
                struct rq *rq = rq_of_rt_rq(rt_rq);
+#endif
 
                rt_rq->highest_prio = rt_se_prio(rt_se);
 #ifdef CONFIG_SMP