]> git.baikalelectronics.ru Git - kernel.git/commit
firmware: arm_scmi: Use asynchronous CLOCK_RATE_SET when possible
authorSudeep Holla <sudeep.holla@arm.com>
Mon, 8 Jul 2019 13:42:16 +0000 (14:42 +0100)
committerSudeep Holla <sudeep.holla@arm.com>
Mon, 12 Aug 2019 11:23:01 +0000 (12:23 +0100)
commitda93d421dfbda3eefb5a721d2b2dd5ee38838657
treee6425ca7b776f7ceb74b7838bd37f802e1efb177
parent37706f7a2624cf2f1cf3b46d1d32bab0113e80c4
firmware: arm_scmi: Use asynchronous CLOCK_RATE_SET when possible

CLOCK_PROTOCOL_ATTRIBUTES provides attributes to indicate the maximum
number of pending asynchronous clock rate changes supported by the
platform. If it's non-zero, then we should be able to use asynchronous
clock rate set for any clocks until the maximum limit is reached.

Tracking the current count of pending asynchronous clock set rate
requests, we can decide if the incoming/new request for clock set rate
can be handled asynchronously or not until the maximum limit is
reached.

Cc: linux-clk@vger.kernel.org
Reviewed-by: Stephen Boyd <sboyd@kernel.org>
Signed-off-by: Sudeep Holla <sudeep.holla@arm.com>
drivers/firmware/arm_scmi/clock.c