Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
arm, arm64: Emulate PSCI service PSCI_CPU_SUSPEND
This is a mandatory service with PSCI v0.2+, and if the root cell was using it prior to enabling Jailhouse, just returning an error, like we do so far, will send the CPUs into a busy loop. Implement the minimum of this service by sending the CPU into a wfi, but only if there are no interrupt waiting to be injected. We better check for physical interrupts after the wfi to reduce world switches and, thus, event delivery latencies. CC: Ralf Ramsauer <ralf@ramses-pyramidenbau.de> CC: Mark Rutland <mark.rutland@arm.com> Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com> Tested-by: Ralf Ramsauer <ralf@ramses-pyramidenbau.de>
- Loading branch information