提交 3d8cbdf8 编写于 作者: R Rusty Russell 提交者: Ingo Molnar

sched: convert local_cpu_mask to cpumask_var_t, fix

Impact: build fix for !CONFIG_SMP
Signed-off-by: NRusty Russell <rusty@rustcorp.com.au>
Acked-by: NMike Travis <travis@sgi.com>
Signed-off-by: NIngo Molnar <mingo@elte.hu>
上级 bf4d83f6
...@@ -1381,6 +1381,14 @@ static void switched_from_rt(struct rq *rq, struct task_struct *p, ...@@ -1381,6 +1381,14 @@ static void switched_from_rt(struct rq *rq, struct task_struct *p,
if (!rq->rt.rt_nr_running) if (!rq->rt.rt_nr_running)
pull_rt_task(rq); pull_rt_task(rq);
} }
static inline void init_sched_rt_class(void)
{
unsigned int i;
for_each_possible_cpu(i)
alloc_cpumask_var(&per_cpu(local_cpu_mask, i), GFP_KERNEL);
}
#endif /* CONFIG_SMP */ #endif /* CONFIG_SMP */
/* /*
...@@ -1552,11 +1560,3 @@ static void print_rt_stats(struct seq_file *m, int cpu) ...@@ -1552,11 +1560,3 @@ static void print_rt_stats(struct seq_file *m, int cpu)
} }
#endif /* CONFIG_SCHED_DEBUG */ #endif /* CONFIG_SCHED_DEBUG */
/* Note that this is never called for !SMP, but that's OK. */
static inline void init_sched_rt_class(void)
{
unsigned int i;
for_each_possible_cpu(i)
alloc_cpumask_var(&per_cpu(local_cpu_mask, i), GFP_KERNEL);
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册