diff options
author | Lorenzo Pieralisi <lorenzo.pieralisi@arm.com> | 2019-08-09 12:03:09 +0100 |
---|---|---|
committer | Will Deacon <will@kernel.org> | 2019-08-09 17:51:39 +0100 |
commit | e76d8b7027d9451cfdcb8cd605148ff5e0a1bf5d (patch) | |
tree | a57e44f9ff8244cb07546a0e2e53db54d42ab40f /security | |
parent | 6460d7ba488419dd5bc2cbfd989d5d7930ac1f9f (diff) |
drivers: firmware: psci: Decouple checker from generic ARM CPUidle
The PSCI checker currently relies on the generic ARM CPUidle
infrastructure to enter an idle state, which in turn creates
a dependency that is not really needed.
The PSCI checker code to test PSCI CPU suspend is built on
top of the CPUidle framework and can easily reuse the
struct cpuidle_state.enter() function (previously initialized
by an idle driver, with a PSCI back-end) to trigger an entry
into an idle state, decoupling the PSCI checker from the
generic ARM CPUidle infrastructure and simplyfing the code
in the process.
Convert the PSCI checker suspend entry function to use
the struct cpuidle_state.enter() function callback.
Signed-off-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Acked-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Reviewed-by: Ulf Hansson <ulf.hansson@linaro.org>
Reviewed-by: Sudeep Holla <sudeep.holla@arm.com>
Cc: Sudeep Holla <sudeep.holla@arm.com>
Cc: Mark Rutland <mark.rutland@arm.com>
Signed-off-by: Will Deacon <will@kernel.org>
Diffstat (limited to 'security')
0 files changed, 0 insertions, 0 deletions