cpufreq: scmi: Support the power scale in micro-Watts in SCMI v3.1
authorLukasz Luba <lukasz.luba@arm.com>
Thu, 7 Jul 2022 07:15:55 +0000 (08:15 +0100)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Fri, 15 Jul 2022 17:17:30 +0000 (19:17 +0200)
commitf3ac888fc5fbdeeec1e084327de06a2765542d56
tree8182724665d3bf10f3391e0908cdeff728d799e7
parent5e0fd2026cdd474a85b3135c312912321e60f47a
cpufreq: scmi: Support the power scale in micro-Watts in SCMI v3.1

The SCMI v3.1 adds support for power values in micro-Watts. They are not
always in milli-Watts anymore (ignoring the bogo-Watts). Thus, the power
must be converted conditionally before sending to Energy Model. Add the
logic which handles the needed checks and conversions.

Acked-by: Sudeep Holla <sudeep.holla@arm.com>
Signed-off-by: Lukasz Luba <lukasz.luba@arm.com>
Acked-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/cpufreq/scmi-cpufreq.c