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 Provide in_atomic



details:   https://anonhg.NetBSD.org/src/rev/ee91693126d8
branches:  trunk
changeset: 1028117:ee91693126d8
user:      riastradh <riastradh%NetBSD.org@localhost>
date:      Sun Dec 19 01:54:58 2021 +0000

description:
Provide in_atomic


Author: Maya Rashish <maya%NetBSD.org@localhost>

diffstat:

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

diffs (16 lines):

diff -r 8cc64d183d70 -r ee91693126d8 sys/external/bsd/drm2/include/linux/preempt.h
--- a/sys/external/bsd/drm2/include/linux/preempt.h     Sun Dec 19 01:54:50 2021 +0000
+++ b/sys/external/bsd/drm2/include/linux/preempt.h     Sun Dec 19 01:54:58 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: preempt.h,v 1.2 2014/03/18 18:20:43 riastradh Exp $    */
+/*     $NetBSD: preempt.h,v 1.3 2021/12/19 01:54:58 riastradh Exp $    */
 
 /*-
  * Copyright (c) 2013 The NetBSD Foundation, Inc.
@@ -37,4 +37,6 @@
 #define        preempt_disable kpreempt_disable
 #define        preempt_enable  kpreempt_enable
 
+#define        in_atomic()     kpreempt_disabled()
+
 #endif  /* _LINUX_PREEMPT_H_ */



Home | Main Index | Thread Index | Old Index