Re: [PATCH 2/2] cpufreq: arm_scmi: Set fast_switch_possible conditionally
From: Sudeep Holla
Date: Wed Jun 17 2020 - 08:48:04 EST
On Wed, Jun 17, 2020 at 10:43:32AM +0100, Nicola Mazzucato wrote:
> Currently the fast_switch_possible flag is set unconditionally
> to true. Based on this, schedutil does not create a
> thread for frequency switching and would always use the
> fast switch path.
> However, if the platform does not support frequency
> fast switch, this may cause the governor to attempt an
> operation that is not supported by the platform.
>
> Fix this by correctly retrieve the fast_switch capability
> from the driver which knows if the platform can support
> this feature.
>
Hi Viresh,
This is first step towards avoiding polling based cpufreq set if firmware
has fast access registers that bypass normal mailbox based messaging.
If you happy with this and provide ack, I will take this along with scmi
changes via ARM SoC. Hope that is fine by you.
--
Regards,
Sudeep