diff --git a/drivers/cpufreq/cpu-boost.c b/drivers/cpufreq/cpu-boost.c index 179cb179b019..f6695636435f 100644 --- a/drivers/cpufreq/cpu-boost.c +++ b/drivers/cpufreq/cpu-boost.c @@ -338,8 +338,6 @@ static int cpu_boost_init(void) int cpu, ret; struct cpu_sync *s; - cpufreq_register_notifier(&boost_adjust_nb, CPUFREQ_POLICY_NOTIFIER); - cpu_boost_wq = alloc_workqueue("cpuboost_wq", WQ_HIGHPRI, 0); if (!cpu_boost_wq) return -EFAULT; @@ -357,10 +355,11 @@ static int cpu_boost_init(void) "boost_sync/%d", cpu); set_cpus_allowed(s->thread, *cpumask_of(cpu)); } + cpufreq_register_notifier(&boost_adjust_nb, CPUFREQ_POLICY_NOTIFIER); atomic_notifier_chain_register(&migration_notifier_head, &boost_migration_nb); - ret = input_register_handler(&cpuboost_input_handler); + return 0; } late_initcall(cpu_boost_init);