drivers/thermal/cpufreq_cooling: Use new Energy Model interface
authorLukasz Luba <lukasz.luba@arm.com>
Thu, 8 Feb 2024 11:55:52 +0000 (11:55 +0000)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Thu, 8 Feb 2024 14:00:31 +0000 (15:00 +0100)
commit207472b8ef715e8089424388c322e8b1633d5254
treefb1c3baa6b3fd3dbbb6bdb97d4c7ef9c682f1812
parent27d2c37e7dea41801378c473089b80385ca65491
drivers/thermal/cpufreq_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/cpufreq_cooling.c