Source-Changes-HG archive

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

[src/trunk]: src/sys/kern Use cpu_softintr_p



details:   https://anonhg.NetBSD.org/src/rev/70b95ec54d23
branches:  trunk
changeset: 359530:70b95ec54d23
user:      ozaki-r <ozaki-r%NetBSD.org@localhost>
date:      Wed Feb 14 03:56:26 2018 +0000

description:
Use cpu_softintr_p

diffstat:

 sys/kern/subr_lockdebug.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 219d5ccb54a4 -r 70b95ec54d23 sys/kern/subr_lockdebug.c
--- a/sys/kern/subr_lockdebug.c Wed Feb 14 03:37:39 2018 +0000
+++ b/sys/kern/subr_lockdebug.c Wed Feb 14 03:56:26 2018 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: subr_lockdebug.c,v 1.58 2017/09/16 23:55:33 christos Exp $     */
+/*     $NetBSD: subr_lockdebug.c,v 1.59 2018/02/14 03:56:26 ozaki-r Exp $      */
 
 /*-
  * Copyright (c) 2006, 2007, 2008 The NetBSD Foundation, Inc.
@@ -34,7 +34,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: subr_lockdebug.c,v 1.58 2017/09/16 23:55:33 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: subr_lockdebug.c,v 1.59 2018/02/14 03:56:26 ozaki-r Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_ddb.h"
@@ -369,7 +369,7 @@
         * Can't call kmem_alloc() if in interrupt context.  XXX We could
         * deadlock, because we don't know which locks the caller holds.
         */
-       if (cpu_intr_p() || (curlwp->l_pflag & LP_INTR) != 0) {
+       if (cpu_intr_p() || cpu_softintr_p()) {
                return s;
        }
 



Home | Main Index | Thread Index | Old Index