|
@@ -566,7 +566,7 @@ static inline struct rt_bandwidth *sched_rt_bandwidth(struct rt_rq *rt_rq)
|
|
static int do_balance_runtime(struct rt_rq *rt_rq)
|
|
static int do_balance_runtime(struct rt_rq *rt_rq)
|
|
{
|
|
{
|
|
struct rt_bandwidth *rt_b = sched_rt_bandwidth(rt_rq);
|
|
struct rt_bandwidth *rt_b = sched_rt_bandwidth(rt_rq);
|
|
- struct root_domain *rd = cpu_rq(smp_processor_id())->rd;
|
|
|
|
|
|
+ struct root_domain *rd = rq_of_rt_rq(rt_rq)->rd;
|
|
int i, weight, more = 0;
|
|
int i, weight, more = 0;
|
|
u64 rt_period;
|
|
u64 rt_period;
|
|
|
|
|