]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
cpufreq: apple-soc: Increase cluster switch timeout to 400us
authorNick Chan <towinchenmi@gmail.com>
Wed, 18 Dec 2024 18:25:07 +0000 (02:25 +0800)
committerViresh Kumar <viresh.kumar@linaro.org>
Mon, 23 Dec 2024 10:56:47 +0000 (16:26 +0530)
Apple A11 SoC takes a long time to switch. Maximum switch time
observed is 345us, so increase the cluster switch timeout to 400us
to be safe.

Signed-off-by: Nick Chan <towinchenmi@gmail.com>
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
drivers/cpufreq/apple-soc-cpufreq.c

index b27d261fe5a68343705d549711ab8e244c791b30..94e57f055a5ffa0cd6bcfde6e4d427706762d680 100644 (file)
@@ -53,7 +53,7 @@
 #define APPLE_DVFS_PLL_FACTOR_MULT     GENMASK(31, 16)
 #define APPLE_DVFS_PLL_FACTOR_DIV      GENMASK(15, 0)
 
-#define APPLE_DVFS_TRANSITION_TIMEOUT 100
+#define APPLE_DVFS_TRANSITION_TIMEOUT 400
 
 struct apple_soc_cpufreq_info {
        bool has_ps2;