summaryrefslogtreecommitdiff
path: root/sys/dev/pci/drm/include
diff options
context:
space:
mode:
authorJonathan Gray <jsg@cvs.openbsd.org>2019-07-02 02:10:00 +0000
committerJonathan Gray <jsg@cvs.openbsd.org>2019-07-02 02:10:00 +0000
commit5cff1a77887847ab6e8fb21cdba9ca83fe414fd0 (patch)
tree023ca49a8d1eb80bfb2b0d6e0599bc41fe310ff7 /sys/dev/pci/drm/include
parentb09b3678fca5fa5e2876eab7292cbd8072c31525 (diff)
Use IPL_TTY for locks used as arguments to spin_lock_irq() and
spin_lock_irqsave() to closer match the linux interrupt blocking behaviour. Prompted by a discussion with kettenis@. ok kettenis@
Diffstat (limited to 'sys/dev/pci/drm/include')
-rw-r--r--sys/dev/pci/drm/include/linux/spinlock_types.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/pci/drm/include/linux/spinlock_types.h b/sys/dev/pci/drm/include/linux/spinlock_types.h
index 37b42507759..f76354838c9 100644
--- a/sys/dev/pci/drm/include/linux/spinlock_types.h
+++ b/sys/dev/pci/drm/include/linux/spinlock_types.h
@@ -8,6 +8,6 @@
#include <linux/rwlock_types.h>
typedef struct mutex spinlock_t;
-#define DEFINE_SPINLOCK(x) struct mutex x
+#define DEFINE_SPINLOCK(x) struct mutex x = MUTEX_INITIALIZER(IPL_TTY)
#endif