summaryrefslogtreecommitdiff
path: root/sys/dev/pci/drm/include
diff options
context:
space:
mode:
authorJonathan Gray <jsg@cvs.openbsd.org>2024-11-10 10:04:34 +0000
committerJonathan Gray <jsg@cvs.openbsd.org>2024-11-10 10:04:34 +0000
commit5e1bb8ad8f057ea3740e5a304d2b7f9abdba0df7 (patch)
tree594dad68c690bd0a0ee56f91656fdd81b5eeaa35 /sys/dev/pci/drm/include
parent691328bd8f78bbebf12daaa96e24b5824828367c (diff)
all archs now have ci_idepth, remove ifdefs
Diffstat (limited to 'sys/dev/pci/drm/include')
-rw-r--r--sys/dev/pci/drm/include/linux/preempt.h5
1 files changed, 0 insertions, 5 deletions
diff --git a/sys/dev/pci/drm/include/linux/preempt.h b/sys/dev/pci/drm/include/linux/preempt.h
index 361befa92c3..32bf1168d15 100644
--- a/sys/dev/pci/drm/include/linux/preempt.h
+++ b/sys/dev/pci/drm/include/linux/preempt.h
@@ -29,12 +29,7 @@ migrate_disable(void)
static inline bool
in_irq(void)
{
-#if defined(__amd64__) || defined(__arm__) || defined(__arm64__) || \
- defined(__i386__) || defined(__powerpc64__) || defined(__riscv64__)
return (curcpu()->ci_idepth > 0);
-#else
- return false;
-#endif
}
static inline bool