Only use the CPU_OFF PSCI call if SYSTEM_SUSPEND is supported. This means
authorkettenis <kettenis@openbsd.org>
Fri, 27 Jan 2023 23:11:59 +0000 (23:11 +0000)
committerkettenis <kettenis@openbsd.org>
Fri, 27 Jan 2023 23:11:59 +0000 (23:11 +0000)
commitaa08aab774dbcd6ea6c1c1a9c137f951e7876d28
treed23aa2a2da25b0f2ee96cc71b14bb2ba43a96312
parent4533a266c0712cc20b7fbbbf5f3e393ab8cd3a54
Only use the CPU_OFF PSCI call if SYSTEM_SUSPEND is supported.  This means
that secondary CPUs will get parked in a WFI loop like we already do on
Apple Silicon systems.  This requires some small changes in agintc(4) to
make sure we ack the "halt" IPI such that we can send a "wakeup" IPI later.

ok patrick@
sys/arch/arm64/arm64/cpu.c
sys/arch/arm64/dev/agintc.c