Source-Changes-HG archive

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

[src/trunk]: src/sys/kern kern/kern_lock.c: We get start_init_exec from sys/k...



details:   https://anonhg.NetBSD.org/src/rev/2aba68596f3d
branches:  trunk
changeset: 372071:2aba68596f3d
user:      riastradh <riastradh%NetBSD.org@localhost>
date:      Wed Oct 26 23:28:18 2022 +0000

description:
kern/kern_lock.c: We get start_init_exec from sys/kernel.h now.

diffstat:

 sys/kern/kern_lock.c |  5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)

diffs (26 lines):

diff -r 756e7fd6e2f5 -r 2aba68596f3d sys/kern/kern_lock.c
--- a/sys/kern/kern_lock.c      Wed Oct 26 23:27:32 2022 +0000
+++ b/sys/kern/kern_lock.c      Wed Oct 26 23:28:18 2022 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: kern_lock.c,v 1.180 2022/09/13 09:28:05 riastradh Exp $        */
+/*     $NetBSD: kern_lock.c,v 1.181 2022/10/26 23:28:18 riastradh Exp $        */
 
 /*-
  * Copyright (c) 2002, 2006, 2007, 2008, 2009, 2020 The NetBSD Foundation, Inc.
@@ -31,7 +31,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: kern_lock.c,v 1.180 2022/09/13 09:28:05 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: kern_lock.c,v 1.181 2022/10/26 23:28:18 riastradh Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_lockdebug.h"
@@ -254,7 +254,6 @@
                splx(s);
                while (__SIMPLELOCK_LOCKED_P(kernel_lock)) {
 #ifdef LOCKDEBUG
-                       extern int start_init_exec;
                        if (SPINLOCK_SPINOUT(spins) && start_init_exec &&
                            (getticks() - starttime) > 10*hz) {
                                ipi_msg_t msg = {



Home | Main Index | Thread Index | Old Index