From 11712607fcd2e62c6f5400eec54d685b161200e6 Mon Sep 17 00:00:00 2001 From: jsg Date: Sat, 26 Jun 2021 02:02:47 +0000 Subject: [PATCH] riscv64 struct cpu_info has ci_idepth --- sys/dev/pci/drm/include/linux/preempt.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/dev/pci/drm/include/linux/preempt.h b/sys/dev/pci/drm/include/linux/preempt.h index e2ea3855254..6ef9daa9308 100644 --- a/sys/dev/pci/drm/include/linux/preempt.h +++ b/sys/dev/pci/drm/include/linux/preempt.h @@ -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; -- 2.20.1