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 irqs_disabled -- for ass...



details:   https://anonhg.NetBSD.org/src/rev/59f5ca10a771
branches:  trunk
changeset: 1028061:59f5ca10a771
user:      riastradh <riastradh%NetBSD.org@localhost>
date:      Sun Dec 19 01:45:44 2021 +0000

description:
irqs_disabled -- for assertions only.

diffstat:

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

diffs (17 lines):

diff -r c0d892086bad -r 59f5ca10a771 sys/external/bsd/drm2/include/linux/irqflags.h
--- a/sys/external/bsd/drm2/include/linux/irqflags.h    Sun Dec 19 01:45:38 2021 +0000
+++ b/sys/external/bsd/drm2/include/linux/irqflags.h    Sun Dec 19 01:45:44 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: irqflags.h,v 1.1 2014/07/16 20:56:25 riastradh Exp $   */
+/*     $NetBSD: irqflags.h,v 1.2 2021/12/19 01:45:44 riastradh Exp $   */
 
 /*-
  * Copyright (c) 2014 The NetBSD Foundation, Inc.
@@ -37,4 +37,7 @@
 #define        local_irq_save(flags)           ((flags) = splvm())
 #define        local_irq_restore(flags)        (splx((flags)))
 
+/* Only for positive assertions.  */
+#define        irqs_disabled()                 true
+
 #endif /* _LINUX_IRQFLAGS_H_ */



Home | Main Index | Thread Index | Old Index