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@xxxxxxx>
---
drivers/opp/of.c | 17 ++++++++++++-----
include/linux/pm_opp.h | 8 ++++++++
2 files changed, 20 insertions(+), 5 deletions(-)
Acked-by: Viresh Kumar <viresh.kumar@xxxxxxxxxx>
Thanks Viresh for the ACK!
Regards,
Lukasz