diff options
author | 2017-02-15 14:49:13 +0000 | |
---|---|---|
committer | 2017-02-15 14:49:13 +0000 | |
commit | a3f71984bb5281ea9abfc3737c277d05163ea35b (patch) | |
tree | d343a03e7c2fe479ec0c83ad1450e0be0cbec690 | |
parent | Mark dwc2_intr() as MP-safe on octeon. The driver's internal state (diff) | |
download | wireguard-openbsd-a3f71984bb5281ea9abfc3737c277d05163ea35b.tar.xz wireguard-openbsd-a3f71984bb5281ea9abfc3737c277d05163ea35b.zip |
Align mutex IPL with the interrupt handler's priority.
Spotted by stsp@; OK jmatthew@
-rw-r--r-- | sys/dev/usb/dwc2/dwc2.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/usb/dwc2/dwc2.h b/sys/dev/usb/dwc2/dwc2.h index 31fb1875671..a25bfc8a563 100644 --- a/sys/dev/usb/dwc2/dwc2.h +++ b/sys/dev/usb/dwc2/dwc2.h @@ -1,4 +1,4 @@ -/* $OpenBSD: dwc2.h,v 1.13 2015/06/28 11:48:18 jmatthew Exp $ */ +/* $OpenBSD: dwc2.h,v 1.14 2017/02/15 14:49:13 visa Exp $ */ /* $NetBSD: dwc2.h,v 1.4 2014/12/23 16:20:06 macallan Exp $ */ /*- @@ -121,7 +121,7 @@ enum usb_otg_state { #define usleep_range(l, u) do { DELAY(u); } while (0) #define spinlock_t struct mutex -#define spin_lock_init(lock) mtx_init(lock, IPL_SCHED) +#define spin_lock_init(lock) mtx_init(lock, IPL_USB) #define spin_lock(l) do { mtx_enter(l); } while (0) #define spin_unlock(l) do { mtx_leave(l); } while (0) |