powercap/dtpm_cpu: Use new Energy Model interface to get table
authorLukasz Luba <lukasz.luba@arm.com>
Thu, 8 Feb 2024 11:55:50 +0000 (11:55 +0000)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Thu, 8 Feb 2024 14:00:31 +0000 (15:00 +0100)
commite20b7a8172b5f6fea82d063c8f1f4df881701759
treea78b3ff5dc0e20ab8393aa89733bf3e3d61fdd35
parent1b600da510735a0f92c8b4140a7e2cb037a6a6c3
powercap/dtpm_cpu: 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_cpu.c