Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 201f3716 authored by Bartlomiej Zolnierkiewicz's avatar Bartlomiej Zolnierkiewicz Committed by Rafael J. Wysocki
Browse files

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: default avatarViresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: default avatarBartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
Signed-off-by: default avatarRafael J. Wysocki <rafael.j.wysocki@intel.com>
parent d9df93ec
Loading
Loading
Loading
Loading
+2 −2
Original line number Original line Diff line number Diff line
@@ -1628,8 +1628,8 @@ int cpufreq_generic_suspend(struct cpufreq_policy *policy)
	int ret;
	int ret;


	if (!policy->suspend_freq) {
	if (!policy->suspend_freq) {
		pr_err("%s: suspend_freq can't be zero\n", __func__);
		pr_debug("%s: suspend_freq not defined\n", __func__);
		return -EINVAL;
		return 0;
	}
	}


	pr_debug("%s: Setting suspend-freq: %u\n", __func__,
	pr_debug("%s: Setting suspend-freq: %u\n", __func__,