From: Nick Chan Date: Wed, 18 Dec 2024 18:25:07 +0000 (+0800) Subject: cpufreq: apple-soc: Increase cluster switch timeout to 400us X-Git-Tag: v6.14-rc1~148^2~2^2^2~6 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=0dc21f609149b958ca8c010d17f9935ed9cc96fe;p=thirdparty%2Fkernel%2Flinux.git cpufreq: apple-soc: Increase cluster switch timeout to 400us 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 Signed-off-by: Viresh Kumar --- diff --git a/drivers/cpufreq/apple-soc-cpufreq.c b/drivers/cpufreq/apple-soc-cpufreq.c index b27d261fe5a68..94e57f055a5ff 100644 --- a/drivers/cpufreq/apple-soc-cpufreq.c +++ b/drivers/cpufreq/apple-soc-cpufreq.c @@ -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;