diff options
author | Jonathan Gray <jsg@cvs.openbsd.org> | 2020-06-30 12:02:36 +0000 |
---|---|---|
committer | Jonathan Gray <jsg@cvs.openbsd.org> | 2020-06-30 12:02:36 +0000 |
commit | 8264b48264e0e2d4b61588bef27ca5419a42d6c6 (patch) | |
tree | 5d7ea134066ca6f0cd9bda2504d830a0baccad1b /sys/dev/pci/drm/include | |
parent | 045cd8195f5d8e171d6ccfbaf6893896fce25f79 (diff) |
use intr_restore() when restoring interrupts
ok kettenis@
Diffstat (limited to 'sys/dev/pci/drm/include')
-rw-r--r-- | sys/dev/pci/drm/include/linux/stop_machine.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/pci/drm/include/linux/stop_machine.h b/sys/dev/pci/drm/include/linux/stop_machine.h index a7e34d02144..0f3def34a1f 100644 --- a/sys/dev/pci/drm/include/linux/stop_machine.h +++ b/sys/dev/pci/drm/include/linux/stop_machine.h @@ -11,9 +11,9 @@ static inline int stop_machine(cpu_stop_fn_t fn, void *arg, void *cpus) { int r; - intr_disable(); + u_long s = intr_disable(); r = (*fn)(arg); - intr_enable(); + intr_restore(s); return r; } |