From: Peter Zijlstra Date: Wed, 17 Nov 2010 22:17:33 +0000 (+0100) Subject: perf: Move perf_event_init() into main.c X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=24a24bb6ff3dc3a09bb131241be920ecc3f0e519;p=GitHub%2Fexynos8895%2Fandroid_kernel_samsung_universal8895.git perf: Move perf_event_init() into main.c Currently we call perf_event_init() from sched_init(). In order to make it more obvious move it to the cannnonical location. Signed-off-by: Peter Zijlstra LKML-Reference: <20101117222056.093629821@chello.nl> Signed-off-by: Ingo Molnar --- diff --git a/init/main.c b/init/main.c index 261ad7b3fe0b..559e86286500 100644 --- a/init/main.c +++ b/init/main.c @@ -67,6 +67,7 @@ #include #include #include +#include #include #include @@ -603,6 +604,7 @@ asmlinkage void __init start_kernel(void) "enabled *very* early, fixing it\n"); local_irq_disable(); } + perf_event_init(); rcu_init(); radix_tree_init(); /* init some links before init_ISA_irqs() */ diff --git a/kernel/sched.c b/kernel/sched.c index dc91a4d09ac3..605ab1b24d81 100644 --- a/kernel/sched.c +++ b/kernel/sched.c @@ -8108,8 +8108,6 @@ void __init sched_init(void) zalloc_cpumask_var(&cpu_isolated_map, GFP_NOWAIT); #endif /* SMP */ - perf_event_init(); - scheduler_running = 1; }