2.6.25.4-rt6 doesn't build with RT_GROUP_SCHED && !SMP

Previous thread: [Bug 10493] mips BCM47XX compile error by Rafael J. Wysocki on Saturday, June 14, 2008 - 1:04 pm. (106 messages)

Next thread: [BUG: NULL pointer dereference] cgroups and RT scheduling interact badly. by Daniel K. on Saturday, June 14, 2008 - 3:26 pm. (16 messages)
From: Adam Sampson
Date: Saturday, June 14, 2008 - 2:10 pm

Hi,

The RT-patched kernel 2.6.25.4-rt6 doesn't build if you've turned on
group scheduling but not SMP, owing to this bit of code in
kernel/sched_rt.c:

#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);

                if (rq->online)
                        cpupri_set(&rq->rd->cpupri, rq->cpu,
                                   rt_se_prio(rt_se));
        }
#endif

struct rq only has "cpu" and "online" elements if CONFIG_SMP is enabled.

My full config is here: http://offog.org/stuff/config-2.6.25

Thanks,

-- 
Adam Sampson <ats@offog.org>                         <http://offog.org/>
--

Previous thread: [Bug 10493] mips BCM47XX compile error by Rafael J. Wysocki on Saturday, June 14, 2008 - 1:04 pm. (106 messages)

Next thread: [BUG: NULL pointer dereference] cgroups and RT scheduling interact badly. by Daniel K. on Saturday, June 14, 2008 - 3:26 pm. (16 messages)