]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit172491544af40eba2d504ee04ad10110096629e6
tree8182724665d3bf10f3391e0908cdeff728d799e7
parent36e045d8be89faa75e793d98c743e79b62a4b56e
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