[RESEND][PATCH v2 1/4] OPP: OF: Export dev_opp_pm_calc_power() for usage from EM
Lukasz Luba
lukasz.luba at arm.com
Tue Mar 26 01:29:06 PDT 2024
On 3/26/24 02:51, Viresh Kumar wrote:
> On 22-03-24, 11:08, Lukasz Luba wrote:
>> There are device drivers which can modify voltage values for OPPs. It
>> could be due to the chip binning and those drivers have specific chip
>> knowledge about it. This adjustment can happen after Energy Model is
>> registered, thus EM can have stale data about power.
>>
>> Export dev_opp_pm_calc_power() which can be used by Energy Model to
>> calculate new power with the new voltage for OPPs.
>>
>> Signed-off-by: Lukasz Luba <lukasz.luba at arm.com>
>> ---
>> drivers/opp/of.c | 17 ++++++++++++-----
>> include/linux/pm_opp.h | 8 ++++++++
>> 2 files changed, 20 insertions(+), 5 deletions(-)
>
> Acked-by: Viresh Kumar <viresh.kumar at linaro.org>
>
Thanks Viresh for the ACK!
Regards,
Lukasz
More information about the linux-arm-kernel
mailing list