Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/external/bsd/drm2/include/linux in_task



details:   https://anonhg.NetBSD.org/src/rev/555e09022e06
branches:  trunk
changeset: 1028402:555e09022e06
user:      riastradh <riastradh%NetBSD.org@localhost>
date:      Sun Dec 19 10:57:50 2021 +0000

description:
in_task

diffstat:

 sys/external/bsd/drm2/include/linux/preempt.h |  3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diffs (16 lines):

diff -r 77ae36fa9f54 -r 555e09022e06 sys/external/bsd/drm2/include/linux/preempt.h
--- a/sys/external/bsd/drm2/include/linux/preempt.h     Sun Dec 19 10:57:42 2021 +0000
+++ b/sys/external/bsd/drm2/include/linux/preempt.h     Sun Dec 19 10:57:50 2021 +0000
@@ -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_ */



Home | Main Index | Thread Index | Old Index