Commit 3f6ec871 authored by Amit Kucheria's avatar Amit Kucheria Committed by Daniel Lezcano

cpufreq: Initialize the governors in core_initcall

Initialize the cpufreq governors earlier to allow for earlier
performance control during the boot process.
Signed-off-by: default avatarAmit Kucheria <amit.kucheria@linaro.org>
Acked-by: default avatarViresh Kumar <viresh.kumar@linaro.org>
Reviewed-by: default avatarRafael J. Wysocki <rafael.j.wysocki@intel.com>
Signed-off-by: default avatarDaniel Lezcano <daniel.lezcano@linaro.org>
Link: https://lore.kernel.org/r/b98eae9b44eb2f034d7f5d12a161f5f831be1eb7.1571656015.git.amit.kucheria@linaro.org
parent ae16a688
...@@ -346,7 +346,7 @@ struct cpufreq_governor *cpufreq_default_governor(void) ...@@ -346,7 +346,7 @@ struct cpufreq_governor *cpufreq_default_governor(void)
return CPU_FREQ_GOV_CONSERVATIVE; return CPU_FREQ_GOV_CONSERVATIVE;
} }
fs_initcall(cpufreq_gov_dbs_init); core_initcall(cpufreq_gov_dbs_init);
#else #else
module_init(cpufreq_gov_dbs_init); module_init(cpufreq_gov_dbs_init);
#endif #endif
......
...@@ -483,7 +483,7 @@ struct cpufreq_governor *cpufreq_default_governor(void) ...@@ -483,7 +483,7 @@ struct cpufreq_governor *cpufreq_default_governor(void)
return CPU_FREQ_GOV_ONDEMAND; return CPU_FREQ_GOV_ONDEMAND;
} }
fs_initcall(cpufreq_gov_dbs_init); core_initcall(cpufreq_gov_dbs_init);
#else #else
module_init(cpufreq_gov_dbs_init); module_init(cpufreq_gov_dbs_init);
#endif #endif
......
...@@ -50,5 +50,5 @@ MODULE_AUTHOR("Dominik Brodowski <linux@brodo.de>"); ...@@ -50,5 +50,5 @@ MODULE_AUTHOR("Dominik Brodowski <linux@brodo.de>");
MODULE_DESCRIPTION("CPUfreq policy governor 'performance'"); MODULE_DESCRIPTION("CPUfreq policy governor 'performance'");
MODULE_LICENSE("GPL"); MODULE_LICENSE("GPL");
fs_initcall(cpufreq_gov_performance_init); core_initcall(cpufreq_gov_performance_init);
module_exit(cpufreq_gov_performance_exit); module_exit(cpufreq_gov_performance_exit);
...@@ -43,7 +43,7 @@ struct cpufreq_governor *cpufreq_default_governor(void) ...@@ -43,7 +43,7 @@ struct cpufreq_governor *cpufreq_default_governor(void)
return &cpufreq_gov_powersave; return &cpufreq_gov_powersave;
} }
fs_initcall(cpufreq_gov_powersave_init); core_initcall(cpufreq_gov_powersave_init);
#else #else
module_init(cpufreq_gov_powersave_init); module_init(cpufreq_gov_powersave_init);
#endif #endif
......
...@@ -147,7 +147,7 @@ struct cpufreq_governor *cpufreq_default_governor(void) ...@@ -147,7 +147,7 @@ struct cpufreq_governor *cpufreq_default_governor(void)
return &cpufreq_gov_userspace; return &cpufreq_gov_userspace;
} }
fs_initcall(cpufreq_gov_userspace_init); core_initcall(cpufreq_gov_userspace_init);
#else #else
module_init(cpufreq_gov_userspace_init); module_init(cpufreq_gov_userspace_init);
#endif #endif
......
...@@ -915,7 +915,7 @@ static int __init sugov_register(void) ...@@ -915,7 +915,7 @@ static int __init sugov_register(void)
{ {
return cpufreq_register_governor(&schedutil_gov); return cpufreq_register_governor(&schedutil_gov);
} }
fs_initcall(sugov_register); core_initcall(sugov_register);
#ifdef CONFIG_ENERGY_MODEL #ifdef CONFIG_ENERGY_MODEL
extern bool sched_energy_update; extern bool sched_energy_update;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment