VisionFive2 Linux kernel

StarFive Tech Linux Kernel for VisionFive (JH7110) boards (mirror)

More than 9999 Commits   33 Branches   55 Tags
author: Leonard Crestez <leonard.crestez@nxp.com> 2019-10-31 23:34:19 +0200 committer: Chanwoo Choi <cw00.choi@samsung.com> 2019-12-09 12:19:15 +0900 commit: e7cc792d00049c874010b398a27c3cc7bc8fef34 parent: e876e710ede23f670494331e062d643928e4142a
Commit Summary:
PM / devfreq: Set scaling_max_freq to max on OPP notifier error
Diffstat:
1 file changed, 3 insertions, 1 deletion
diff --git a/drivers/devfreq/devfreq.c b/drivers/devfreq/devfreq.c
index 4de70bd0f63d..66f0a795442b 100644
--- a/drivers/devfreq/devfreq.c
+++ b/drivers/devfreq/devfreq.c
@@ -577,8 +577,10 @@ static int devfreq_notifier_call(struct notifier_block *nb, unsigned long type,
 		goto out;
 
 	devfreq->scaling_max_freq = find_available_max_freq(devfreq);
-	if (!devfreq->scaling_max_freq)
+	if (!devfreq->scaling_max_freq) {
+		devfreq->scaling_max_freq = ULONG_MAX;
 		goto out;
+	}
 
 	err = update_devfreq(devfreq);