mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 03:27:44 -04:00
cpuidle: governor: Add new governors to cpuidle_governors again
After commit61cb5758d3("cpuidle: Add cpuidle.governor= command line parameter") new cpuidle governors are not added to the list of available governors, so governor selection via sysfs doesn't work as expected (even though it is rarely used anyway). Fix that by making cpuidle_register_governor() add new governors to cpuidle_governors again. Fixes:61cb5758d3("cpuidle: Add cpuidle.governor= command line parameter") Reported-by: Kees Cook <[email protected]> Cc: 5.0+ <[email protected]> # 5.0+ Signed-off-by: Rafael J. Wysocki <[email protected]>
This commit is contained in:
parent
814b8797f9
commit
22782b3f9b
1 changed files with 1 additions and 0 deletions
|
|
@ -89,6 +89,7 @@ int cpuidle_register_governor(struct cpuidle_governor *gov)
|
|||
mutex_lock(&cpuidle_lock);
|
||||
if (__cpuidle_find_governor(gov->name) == NULL) {
|
||||
ret = 0;
|
||||
list_add_tail(&gov->governor_list, &cpuidle_governors);
|
||||
if (!cpuidle_curr_governor ||
|
||||
!strncasecmp(param_governor, gov->name, CPUIDLE_NAME_LEN) ||
|
||||
(cpuidle_curr_governor->rating < gov->rating &&
|
||||
|
|
|
|||
Loading…
Reference in a new issue