diff options
-rw-r--r-- | kernel/sched_rt.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/kernel/sched_rt.c b/kernel/sched_rt.c index fb3964579a8a..94aab72f6a02 100644 --- a/kernel/sched_rt.c +++ b/kernel/sched_rt.c | |||
@@ -1381,6 +1381,14 @@ static void switched_from_rt(struct rq *rq, struct task_struct *p, | |||
1381 | if (!rq->rt.rt_nr_running) | 1381 | if (!rq->rt.rt_nr_running) |
1382 | pull_rt_task(rq); | 1382 | pull_rt_task(rq); |
1383 | } | 1383 | } |
1384 | |||
1385 | static inline void init_sched_rt_class(void) | ||
1386 | { | ||
1387 | unsigned int i; | ||
1388 | |||
1389 | for_each_possible_cpu(i) | ||
1390 | alloc_cpumask_var(&per_cpu(local_cpu_mask, i), GFP_KERNEL); | ||
1391 | } | ||
1384 | #endif /* CONFIG_SMP */ | 1392 | #endif /* CONFIG_SMP */ |
1385 | 1393 | ||
1386 | /* | 1394 | /* |
@@ -1552,11 +1560,3 @@ static void print_rt_stats(struct seq_file *m, int cpu) | |||
1552 | } | 1560 | } |
1553 | #endif /* CONFIG_SCHED_DEBUG */ | 1561 | #endif /* CONFIG_SCHED_DEBUG */ |
1554 | 1562 | ||
1555 | /* Note that this is never called for !SMP, but that's OK. */ | ||
1556 | static inline void init_sched_rt_class(void) | ||
1557 | { | ||
1558 | unsigned int i; | ||
1559 | |||
1560 | for_each_possible_cpu(i) | ||
1561 | alloc_cpumask_var(&per_cpu(local_cpu_mask, i), GFP_KERNEL); | ||
1562 | } | ||