cpufreq: CPPC: Avoid using CPUFREQ_ETERNAL as transition delay
If cppc_get_transition_latency() returns CPUFREQ_ETERNAL to indicate a failure to retrieve the transition latency value from the platform firmware, the CPPC cpufreq driver will use that value (converted to microseconds) as the policy transition delay, but it is way too large for any practical use. Address this by making the driver use the cpufreq's default transition latency value (in microseconds) as the transition delay if CPUFREQ_ETERNAL is returned by cppc_get_transition_latency(). Fixes: d4f3388a ("cpufreq / CPPC: Set platform specific transition_delay_us") Cc: 5.19+ <stable@vger.kernel.org> # 5.19 Signed-off-by:Rafael J. Wysocki <rafael.j.wysocki@intel.com> Reviewed-by:
Mario Limonciello (AMD) <superm1@kernel.org> Reviewed-by:
Jie Zhan <zhanjie9@hisilicon.com> Acked-by:
Viresh Kumar <viresh.kumar@linaro.org> Reviewed-by:
Qais Yousef <qyousef@layalina.io>
Loading
Please sign in to comment