PM: EM: Add em_perf_state_from_pd() to get performance states table
authorLukasz Luba <lukasz.luba@arm.com>
Thu, 8 Feb 2024 11:55:46 +0000 (11:55 +0000)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Thu, 8 Feb 2024 14:00:31 +0000 (15:00 +0100)
commitee1a19873ce1234a3c2e6f84af3624fc73bfbd9c
tree0ac37f4197e20900a963935e5b8f0175a4baf7a0
parent977230d5d50314f9920d3ee6348773d8babbfb58
PM: EM: Add em_perf_state_from_pd() to get performance states table

Introduce a wrapper to get the performance states table of the performance
domain. The function should be called within the RCU read critical
section.

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>
include/linux/energy_model.h