]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit
firmware: arm_scmi: Add power_scale_mw_get() interface
authorLukasz Luba <lukasz.luba@arm.com>
Tue, 24 Nov 2020 10:43:45 +0000 (10:43 +0000)
committerViresh Kumar <viresh.kumar@linaro.org>
Tue, 8 Dec 2020 04:46:13 +0000 (10:16 +0530)
commit76ea4d8eeefbfdd37e47c6fd579d0d5852457618
tree282d28e7b3861a8ac0d99956edfa443f2c7a9fb2
parentc250d50fe2ce627ca9805d9c8ac11cbbf922a4a6
firmware: arm_scmi: Add power_scale_mw_get() interface

Add a new interface to the existing perf_ops and export the information
about the power values scale.

This would be used by the cpufreq driver and Energy Model framework to
set the performance domains scale: milli-Watts or abstract scale.

Suggested-by: Morten Rasmussen <morten.rasmussen@arm.com>
Reviewed-by: Cristian Marussi <cristian.marussi@arm.com>
Signed-off-by: Lukasz Luba <lukasz.luba@arm.com>
Acked-by: Sudeep Holla <sudeep.holla@arm.com>
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
drivers/firmware/arm_scmi/perf.c
include/linux/scmi_protocol.h