riscv64 struct cpu_info has ci_idepth
authorjsg <jsg@openbsd.org>
Sat, 26 Jun 2021 02:02:47 +0000 (02:02 +0000)
committerjsg <jsg@openbsd.org>
Sat, 26 Jun 2021 02:02:47 +0000 (02:02 +0000)
sys/dev/pci/drm/include/linux/preempt.h

index e2ea385..6ef9daa 100644 (file)
@@ -12,7 +12,7 @@ static inline bool
 in_irq(void)
 {
 #if defined(__amd64__) || defined(__arm__) || defined(__arm64__) || \
-    defined(__i386__) || defined(__powerpc64__)
+    defined(__i386__) || defined(__powerpc64__) || defined(__riscv64__)
        return (curcpu()->ci_idepth > 0);
 #else
        return false;