cpufreq: apple-soc: Switch to the lowest frequency on suspend
authorHector Martin <marcan@marcan.st>
Wed, 4 Jan 2023 10:21:49 +0000 (19:21 +0900)
committerViresh Kumar <viresh.kumar@linaro.org>
Wed, 4 Jan 2023 10:47:07 +0000 (16:17 +0530)
commitc956541736b94944047ee52ebfc5ee4babcd6ca1
tree0d1d2e1ae19a65afe5f3f13da8b6e0b6088dbdc6
parent53cd37c1368d07649421517ed0aab94a49cca003
cpufreq: apple-soc: Switch to the lowest frequency on suspend

Without this, the CPUs are left in a random pstate. Since we don't
support deep idle yet (which powers down the CPUs), this results in
significantly increased idle power consumption in suspend.

Fixes: 6286bbb40576 ("cpufreq: apple-soc: Add new driver to control Apple SoC CPU P-states")
Signed-off-by: Hector Martin <marcan@marcan.st>
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
drivers/cpufreq/apple-soc-cpufreq.c