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 Define in_interrupt for ...



details:   https://anonhg.NetBSD.org/src/rev/0f9584271c25
branches:  trunk
changeset: 835020:0f9584271c25
user:      riastradh <riastradh%NetBSD.org@localhost>
date:      Mon Aug 27 07:20:16 2018 +0000

description:
Define in_interrupt for debugging assertions.

diffstat:

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

diffs (18 lines):

diff -r 1101212de04d -r 0f9584271c25 sys/external/bsd/drm2/include/linux/interrupt.h
--- a/sys/external/bsd/drm2/include/linux/interrupt.h   Mon Aug 27 07:20:05 2018 +0000
+++ b/sys/external/bsd/drm2/include/linux/interrupt.h   Mon Aug 27 07:20:16 2018 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: interrupt.h,v 1.2 2014/03/18 18:20:43 riastradh Exp $  */
+/*     $NetBSD: interrupt.h,v 1.3 2018/08/27 07:20:16 riastradh Exp $  */
 
 /*-
  * Copyright (c) 2013 The NetBSD Foundation, Inc.
@@ -32,4 +32,8 @@
 #ifndef _LINUX_INTERRUPT_H_
 #define _LINUX_INTERRUPT_H_
 
+#include <sys/cpu.h>
+
+#define        in_interrupt()  (cpu_intr_p() || cpu_softintr_p())
+
 #endif  /* _LINUX_INTERRUPT_H_ */



Home | Main Index | Thread Index | Old Index