aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/sched.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/sched.c')
-rw-r--r--kernel/sched.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/kernel/sched.c b/kernel/sched.c
index 2f600e30dcf0..a728976a3a6c 100644
--- a/kernel/sched.c
+++ b/kernel/sched.c
@@ -39,6 +39,7 @@
39#include <linux/completion.h> 39#include <linux/completion.h>
40#include <linux/kernel_stat.h> 40#include <linux/kernel_stat.h>
41#include <linux/debug_locks.h> 41#include <linux/debug_locks.h>
42#include <linux/perf_counter.h>
42#include <linux/security.h> 43#include <linux/security.h>
43#include <linux/notifier.h> 44#include <linux/notifier.h>
44#include <linux/profile.h> 45#include <linux/profile.h>
@@ -8996,7 +8997,7 @@ void __init sched_init(void)
8996 * 1024) and two child groups A0 and A1 (of weight 1024 each), 8997 * 1024) and two child groups A0 and A1 (of weight 1024 each),
8997 * then A0's share of the cpu resource is: 8998 * then A0's share of the cpu resource is:
8998 * 8999 *
8999 * A0's bandwidth = 1024 / (10*1024 + 1024 + 1024) = 8.33% 9000 * A0's bandwidth = 1024 / (10*1024 + 1024 + 1024) = 8.33%
9000 * 9001 *
9001 * We achieve this by letting init_task_group's tasks sit 9002 * We achieve this by letting init_task_group's tasks sit
9002 * directly in rq->cfs (i.e init_task_group->se[] = NULL). 9003 * directly in rq->cfs (i.e init_task_group->se[] = NULL).
@@ -9097,6 +9098,8 @@ void __init sched_init(void)
9097 alloc_bootmem_cpumask_var(&cpu_isolated_map); 9098 alloc_bootmem_cpumask_var(&cpu_isolated_map);
9098#endif /* SMP */ 9099#endif /* SMP */
9099 9100
9101 perf_counter_init();
9102
9100 scheduler_running = 1; 9103 scheduler_running = 1;
9101} 9104}
9102 9105