firmware: arm_scmi: Add fast_switch_possible() interface
authorNicola Mazzucato <nicola.mazzucato@arm.com>
Wed, 17 Jun 2020 09:43:31 +0000 (10:43 +0100)
committerSudeep Holla <sudeep.holla@arm.com>
Tue, 30 Jun 2020 13:07:15 +0000 (14:07 +0100)
commit1909872ff20fc378ec6a44ea1a2b2966d834e504
tree9d8a474d2786d42fe5d70774d6f9c7a4a7c016a0
parentbad0d73b657412058c4d7773ff0d50291bfe1905
firmware: arm_scmi: Add fast_switch_possible() interface

Add a new fast_switch_possible interface to the existing perf_ops to
export the information of whether or not fast_switch is possible for a
given device.

This can be used by the cpufreq driver and framework to choose proper
mechanism for frequency change.

Link: https://lore.kernel.org/r/20200617094332.8391-1-nicola.mazzucato@arm.com
Suggested-by: Lukasz Luba <lukasz.luba@arm.com>
Signed-off-by: Nicola Mazzucato <nicola.mazzucato@arm.com>
Signed-off-by: Sudeep Holla <sudeep.holla@arm.com>
drivers/firmware/arm_scmi/perf.c
include/linux/scmi_protocol.h