diff options
author | Ulf Hansson <ulf.hansson@linaro.org> | 2019-10-10 12:01:48 +0200 |
---|---|---|
committer | Ulf Hansson <ulf.hansson@linaro.org> | 2020-01-02 16:50:28 +0100 |
commit | 8554951a4dd3d3a1a0efeba8eb5543eee7533be4 (patch) | |
tree | 7d1b89c25982de4d4ee09d43d63e6a3290f6b925 /drivers/cpuidle/cpuidle-powernv.c | |
parent | a5e0454cf3920f1e5ec1fae71783e576ea9b1318 (diff) |
cpuidle: psci: Attach CPU devices to their PM domains
In order to enable a CPU to be power managed through its PM domain, let's
try to attach it by calling psci_dt_attach_cpu() during the cpuidle
initialization.
psci_dt_attach_cpu() returns a pointer to the attached struct device, which
later should be used for runtime PM, hence we need to store it somewhere.
Rather than adding yet another per CPU variable, let's create a per CPU
struct to collect the relevant per CPU variables.
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Reviewed-by: Sudeep Holla <sudeep.holla@arm.com>
Acked-by: Rafael J. Wysocki <rafael@kernel.org>
Diffstat (limited to 'drivers/cpuidle/cpuidle-powernv.c')
0 files changed, 0 insertions, 0 deletions