]> www.infradead.org Git - users/jedix/linux-maple.git/commit
PM: EM: Add em_dev_update_chip_binning()
authorLukasz Luba <lukasz.luba@arm.com>
Wed, 3 Apr 2024 15:49:06 +0000 (16:49 +0100)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Mon, 8 Apr 2024 14:05:14 +0000 (16:05 +0200)
commitcf61d53b026805e8222ca28ac2795611eb7fa547
tree1031ecae35e5b76b60fbfe585855a985de093817
parentd61c2695bddf56f4527f71cc6ebc31897be36cff
PM: EM: Add em_dev_update_chip_binning()

Add a function which allows to modify easily the EM after the new voltage
information is available. The device drivers for the chip can adjust
the voltage values after setup. The voltage for the same frequency in OPP
can be different due to chip binning. The voltage impacts the power usage
and the EM power values can be updated to reflect that.

Reviewed-by: Dietmar Eggemann <dietmar.eggemann@arm.com>
Signed-off-by: Lukasz Luba <lukasz.luba@arm.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
include/linux/energy_model.h
kernel/power/energy_model.c