summaryrefslogtreecommitdiff
path: root/sys/external/bsd/drm2/include/linux
diff options
context:
space:
mode:
authorriastradh <riastradh@NetBSD.org>2021-12-19 10:57:50 +0000
committerriastradh <riastradh@NetBSD.org>2021-12-19 10:57:50 +0000
commitf04f4bbefa9b7a976ba214e5dcd50fafe9b1e144 (patch)
tree30c651afb51d5f5533049aa5f3f478432cd8e86f /sys/external/bsd/drm2/include/linux
parent984c40453c681d4285c13f133565c11e91563aae (diff)
in_task
Diffstat (limited to 'sys/external/bsd/drm2/include/linux')
-rw-r--r--sys/external/bsd/drm2/include/linux/preempt.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/external/bsd/drm2/include/linux/preempt.h b/sys/external/bsd/drm2/include/linux/preempt.h
index a6ef2be4c21..c1d9b2b739a 100644
--- a/sys/external/bsd/drm2/include/linux/preempt.h
+++ b/sys/external/bsd/drm2/include/linux/preempt.h
@@ -1,4 +1,4 @@
-/* $NetBSD: preempt.h,v 1.3 2021/12/19 01:54:58 riastradh Exp $ */
+/* $NetBSD: preempt.h,v 1.4 2021/12/19 10:57:50 riastradh Exp $ */
/*-
* Copyright (c) 2013 The NetBSD Foundation, Inc.
@@ -38,5 +38,6 @@
#define preempt_enable kpreempt_enable
#define in_atomic() kpreempt_disabled()
+#define in_task() !(cpu_intr_p() || cpu_softintr_p() || in_atomic())
#endif /* _LINUX_PREEMPT_H_ */