We should block non-wakeup interrupts until we're in the resume path and
authorkettenis <kettenis@openbsd.org>
Sat, 15 Jun 2024 18:01:44 +0000 (18:01 +0000)
committerkettenis <kettenis@openbsd.org>
Sat, 15 Jun 2024 18:01:44 +0000 (18:01 +0000)
commit1e607cd8d3641e88bc97f33452c86803c80ad2ea
tree9dd46fecb16a9da9cc99892badb50530452d4c4f
parentc48f8ce892c26060b5ee64e6d6bccd7d2d138c3d
We should block non-wakeup interrupts until we're in the resume path and
have disabled interrupts at the CPU level again.  So instead of
cpu_suspended use a new intr_suspended variable that is set and cleared in
intr_enable_wakeup() and intr_disable_wakeup().

ok mglocker@, mlarkin@
sys/arch/amd64/amd64/intr.c