powercap: DTPM: Fix unneeded conversions to micro-Watts
authorLukasz Luba <lukasz.luba@arm.com>
Mon, 27 Nov 2023 09:28:19 +0000 (09:28 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 8 Dec 2023 07:51:15 +0000 (08:51 +0100)
commit9d4c721c1866f92c79016e9c04bcae40740c27de
treeba2447e058be017d8d24621c84f20baa702e0890
parenta62ca58bb3ccbaab391f27704ed51583bc271ef2
powercap: DTPM: Fix unneeded conversions to micro-Watts

commit b817f1488fca548fe50e2654d84a1956a16a1a8a upstream.

The power values coming from the Energy Model are already in uW.

The PowerCap and DTPM frameworks operate on uW, so all places should
just use the values from the EM.

Fix the code by removing all of the conversion to uW still present in it.

Fixes: ae6ccaa65038 (PM: EM: convert power field to micro-Watts precision and align drivers)
Cc: 5.19+ <stable@vger.kernel.org> # v5.19+
Signed-off-by: Lukasz Luba <lukasz.luba@arm.com>
[ rjw: Changelog edits ]
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/powercap/dtpm_cpu.c
drivers/powercap/dtpm_devfreq.c