firmware: arm_scmi: Get detailed power scale from perf
authorLukasz Luba <lukasz.luba@arm.com>
Thu, 7 Jul 2022 07:15:54 +0000 (08:15 +0100)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Fri, 15 Jul 2022 17:17:30 +0000 (19:17 +0200)
commit5e0fd2026cdd474a85b3135c312912321e60f47a
treed4410844132a8ad5e6f55333a16c4980c41a254e
parentc5d39fae8992cfca6d57e09dadf7aaaf7e64224f
firmware: arm_scmi: Get detailed power scale from perf

In SCMI v3.1 the power scale can be in micro-Watts. The upper layers, e.g.
cpufreq and EM should handle received power values properly (upscale when
needed). Thus, provide an interface which allows to check what is the
scale for power values. The old interface allowed to distinguish between
bogo-Watts and milli-Watts only (which was good for older SCMI spec).

Acked-by: Sudeep Holla <sudeep.holla@arm.com>
Signed-off-by: Lukasz Luba <lukasz.luba@arm.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/firmware/arm_scmi/perf.c
include/linux/scmi_protocol.h