drivers/thermal/devfreq_cooling: Use new Energy Model interface
authorLukasz Luba <lukasz.luba@arm.com>
Thu, 8 Feb 2024 11:55:53 +0000 (11:55 +0000)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Thu, 8 Feb 2024 14:00:32 +0000 (15:00 +0100)
commit9f5fb518c3c022c5c50883c9006f6f2cd00d51d7
treef0f63b5307dac69ab7c82b6ae51c6dc874612702
parent207472b8ef715e8089424388c322e8b1633d5254
drivers/thermal/devfreq_cooling: Use new Energy Model interface

Energy Model framework support modifications at runtime of the power
values. Use the new EM table which is protected with RCU. Align the
code so that this RCU read section is short.

This change is not expected to alter the general functionality.

Reviewed-by: Dietmar Eggemann <dietmar.eggemann@arm.com>
Tested-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>
drivers/thermal/devfreq_cooling.c