aboutsummaryrefslogtreecommitdiffstats
path: root/kernel
diff options
context:
space:
mode:
Diffstat (limited to 'kernel')
-rw-r--r--kernel/sched.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/kernel/sched.c b/kernel/sched.c
index b56d98b01267..6ab0fcbf26e9 100644
--- a/kernel/sched.c
+++ b/kernel/sched.c
@@ -6116,10 +6116,6 @@ void __init migration_init(void)
6116 6116
6117#ifdef CONFIG_SMP 6117#ifdef CONFIG_SMP
6118 6118
6119/* Number of possible processor ids */
6120int nr_cpu_ids __read_mostly = NR_CPUS;
6121EXPORT_SYMBOL(nr_cpu_ids);
6122
6123#ifdef CONFIG_SCHED_DEBUG 6119#ifdef CONFIG_SCHED_DEBUG
6124 6120
6125static int sched_domain_debug_one(struct sched_domain *sd, int cpu, int level, 6121static int sched_domain_debug_one(struct sched_domain *sd, int cpu, int level,
@@ -7478,7 +7474,6 @@ static void init_tg_rt_entry(struct rq *rq, struct task_group *tg,
7478 7474
7479void __init sched_init(void) 7475void __init sched_init(void)
7480{ 7476{
7481 int highest_cpu = 0;
7482 int i, j; 7477 int i, j;
7483 unsigned long alloc_size = 0, ptr; 7478 unsigned long alloc_size = 0, ptr;
7484 7479
@@ -7569,7 +7564,6 @@ void __init sched_init(void)
7569#endif 7564#endif
7570 init_rq_hrtick(rq); 7565 init_rq_hrtick(rq);
7571 atomic_set(&rq->nr_iowait, 0); 7566 atomic_set(&rq->nr_iowait, 0);
7572 highest_cpu = i;
7573 } 7567 }
7574 7568
7575 set_load_weight(&init_task); 7569 set_load_weight(&init_task);
@@ -7579,7 +7573,6 @@ void __init sched_init(void)
7579#endif 7573#endif
7580 7574
7581#ifdef CONFIG_SMP 7575#ifdef CONFIG_SMP
7582 nr_cpu_ids = highest_cpu + 1;
7583 open_softirq(SCHED_SOFTIRQ, run_rebalance_domains, NULL); 7576 open_softirq(SCHED_SOFTIRQ, run_rebalance_domains, NULL);
7584#endif 7577#endif
7585 7578