mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 11:41:38 -04:00
cpufreq: allow cpufreq_generic_suspend() to work without suspend frequency
Some cpufreq drivers may set suspend frequency only for selected setups but still would like to use the generic suspend handler. Thus don't treat !policy->suspend_freq condition as an incorrect one. Acked-by: Viresh Kumar <[email protected]> Signed-off-by: Bartlomiej Zolnierkiewicz <[email protected]> Signed-off-by: Rafael J. Wysocki <[email protected]>
This commit is contained in:
parent
d9df93ec8e
commit
201f371657
1 changed files with 2 additions and 2 deletions
|
|
@ -1628,8 +1628,8 @@ int cpufreq_generic_suspend(struct cpufreq_policy *policy)
|
|||
int ret;
|
||||
|
||||
if (!policy->suspend_freq) {
|
||||
pr_err("%s: suspend_freq can't be zero\n", __func__);
|
||||
return -EINVAL;
|
||||
pr_debug("%s: suspend_freq not defined\n", __func__);
|
||||
return 0;
|
||||
}
|
||||
|
||||
pr_debug("%s: Setting suspend-freq: %u\n", __func__,
|
||||
|
|
|
|||
Loading…
Reference in a new issue