Pull enabling/disabling wakeup interrupt handling out of the aplintc(4)
authorkettenis <kettenis@openbsd.org>
Wed, 21 Dec 2022 22:30:42 +0000 (22:30 +0000)
committerkettenis <kettenis@openbsd.org>
Wed, 21 Dec 2022 22:30:42 +0000 (22:30 +0000)
commit5dee57024e6d59a6ce03549ce37fbdea3e9df090
treef1eefc9241dde7ba09e3f8d2de772aa1c81af353
parent1004d7a76af6adb1d279843d2e17b21580c57c43
Pull enabling/disabling wakeup interrupt handling out of the aplintc(4)
DVACT_SUSPEND/DVACT_RESUME handling and push it into the MD code that
handles "suspend-to-idle".  This way a failure in DVACT_SUSPEND handling
will not result in hosed interrupts on the primary interrupt controller
if we abort the suspend operation.

requested by deraadt@
ok patrick@
sys/arch/arm64/arm64/cpu.c
sys/arch/arm64/arm64/intr.c
sys/arch/arm64/dev/agintc.c
sys/arch/arm64/dev/ampintc.c
sys/arch/arm64/dev/aplintc.c
sys/arch/arm64/dev/aplmbox.c
sys/arch/arm64/dev/bcm2836_intr.c
sys/arch/arm64/include/intr.h