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:52:18 +0000 (08:52 +0100)
commit0376fd5fce9a22e88e445b636d3df82bb02a0760
tree3583ae10e1ff23fcaca628b06c3e39b25d5e66f1
parent59ae50ebf09e55672d7fae31ee7ed414916116ec
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