mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 19:21:31 -04:00
UPSTREAM: 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: Amit Kucheria <[email protected]> Acked-by: Viresh Kumar <[email protected]> Reviewed-by: Rafael J. Wysocki <[email protected]> Signed-off-by: Daniel Lezcano <[email protected]> Link: https://lore.kernel.org/r/b98eae9b44eb2f034d7f5d12a161f5f831be1eb7.1571656015.git.amit.kucheria@linaro.org (cherry picked from commit 3f6ec871e1c2b360aaf022e90bb99dcc016b3874) Signed-off-by: John Stultz <[email protected]> Bug: 146449535 Change-Id: Ib5599ade3811fb44a15cda6ee3791d997207cad5
This commit is contained in:
parent
1fc7351d13
commit
98117f2abf
6 changed files with 6 additions and 6 deletions
|
|
@ -346,7 +346,7 @@ struct cpufreq_governor *cpufreq_default_governor(void)
|
|||
return CPU_FREQ_GOV_CONSERVATIVE;
|
||||
}
|
||||
|
||||
fs_initcall(cpufreq_gov_dbs_init);
|
||||
core_initcall(cpufreq_gov_dbs_init);
|
||||
#else
|
||||
module_init(cpufreq_gov_dbs_init);
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -483,7 +483,7 @@ struct cpufreq_governor *cpufreq_default_governor(void)
|
|||
return CPU_FREQ_GOV_ONDEMAND;
|
||||
}
|
||||
|
||||
fs_initcall(cpufreq_gov_dbs_init);
|
||||
core_initcall(cpufreq_gov_dbs_init);
|
||||
#else
|
||||
module_init(cpufreq_gov_dbs_init);
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -50,5 +50,5 @@ MODULE_AUTHOR("Dominik Brodowski <[email protected]>");
|
|||
MODULE_DESCRIPTION("CPUfreq policy governor 'performance'");
|
||||
MODULE_LICENSE("GPL");
|
||||
|
||||
fs_initcall(cpufreq_gov_performance_init);
|
||||
core_initcall(cpufreq_gov_performance_init);
|
||||
module_exit(cpufreq_gov_performance_exit);
|
||||
|
|
|
|||
|
|
@ -43,7 +43,7 @@ struct cpufreq_governor *cpufreq_default_governor(void)
|
|||
return &cpufreq_gov_powersave;
|
||||
}
|
||||
|
||||
fs_initcall(cpufreq_gov_powersave_init);
|
||||
core_initcall(cpufreq_gov_powersave_init);
|
||||
#else
|
||||
module_init(cpufreq_gov_powersave_init);
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -147,7 +147,7 @@ struct cpufreq_governor *cpufreq_default_governor(void)
|
|||
return &cpufreq_gov_userspace;
|
||||
}
|
||||
|
||||
fs_initcall(cpufreq_gov_userspace_init);
|
||||
core_initcall(cpufreq_gov_userspace_init);
|
||||
#else
|
||||
module_init(cpufreq_gov_userspace_init);
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Reference in a new issue