Change suspend idle loop from WFE to WFI. This avoids spurious wakeups
authorkettenis <kettenis@openbsd.org>
Sat, 14 Jan 2023 23:38:23 +0000 (23:38 +0000)
committerkettenis <kettenis@openbsd.org>
Sat, 14 Jan 2023 23:38:23 +0000 (23:38 +0000)
commit41d0860c4b39d7b39c40e6990d2ab188a89f54bd
tree65d387b6ab3d06558f781c0f64f3036155d5d2db
parentee8269ddb4b2451f6b04c27d348abc5a38574ca8
Change suspend idle loop from WFE to WFI.  This avoids spurious wakeups
while other CPUs are still active.  And prepares us for deeper sleep states
which require an interrupt for wakeup anyway.

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