summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjsg <jsg@openbsd.org>2020-07-02 09:50:55 +0000
committerjsg <jsg@openbsd.org>2020-07-02 09:50:55 +0000
commit3cc13b9326a063a14cb50ec2cf0a261a6e2499c4 (patch)
tree86f7a64fa08da434e56aa2e52835c9672d6e1f12
parentUse a relative branch to jump from setjmp(3) into _setjmp(4). (diff)
downloadwireguard-openbsd-3cc13b9326a063a14cb50ec2cf0a261a6e2499c4.tar.xz
wireguard-openbsd-3cc13b9326a063a14cb50ec2cf0a261a6e2499c4.zip
powerpc64 has ci_idepth
-rw-r--r--sys/dev/pci/drm/include/linux/preempt.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/pci/drm/include/linux/preempt.h b/sys/dev/pci/drm/include/linux/preempt.h
index fdcaf207999..e2ea3855254 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(__i386__) || defined(__powerpc64__)
return (curcpu()->ci_idepth > 0);
#else
return false;