powercap/dtpm_devfreq: Use new Energy Model interface to get table
authorLukasz Luba <lukasz.luba@arm.com>
Thu, 8 Feb 2024 11:55:51 +0000 (11:55 +0000)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Thu, 8 Feb 2024 14:00:31 +0000 (15:00 +0100)
commit27d2c37e7dea41801378c473089b80385ca65491
tree478a5326ce56e73e592ae0422e035d408741a0f5
parente20b7a8172b5f6fea82d063c8f1f4df881701759
powercap/dtpm_devfreq: Use new Energy Model interface to get table

Energy Model framework support modifications at runtime of the power
values. Use the new EM table API 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/powercap/dtpm_devfreq.c