From b2138a8b6a6a4aa1f4d1b74820ada38a960b501a Mon Sep 17 00:00:00 2001 From: ad Date: Mon, 18 Jun 2007 21:37:32 +0000 Subject: [PATCH] Re-apply rev 1.111: Always include kernel_lock so that LOCKDEBUG checks can find the symbol. --- sys/kern/kern_lock.c | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/sys/kern/kern_lock.c b/sys/kern/kern_lock.c index d1fd0338041a..653b6d48cbb1 100644 --- a/sys/kern/kern_lock.c +++ b/sys/kern/kern_lock.c @@ -1,4 +1,4 @@ -/* $NetBSD: kern_lock.c,v 1.115 2007/06/15 20:59:38 ad Exp $ */ +/* $NetBSD: kern_lock.c,v 1.116 2007/06/18 21:37:32 ad Exp $ */ /*- * Copyright (c) 1999, 2000, 2006, 2007 The NetBSD Foundation, Inc. @@ -76,7 +76,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: kern_lock.c,v 1.115 2007/06/15 20:59:38 ad Exp $"); +__KERNEL_RCSID(0, "$NetBSD: kern_lock.c,v 1.116 2007/06/18 21:37:32 ad Exp $"); #include "opt_multiprocessor.h" #include "opt_ddb.h" @@ -118,11 +118,6 @@ int lock_debug_syslog = 0; /* defaults to printf, but can be patched */ #endif #endif /* defined(LOCKDEBUG) */ -#if defined(MULTIPROCESSOR) -int kernel_lock_id; -__cpu_simple_lock_t kernel_lock; -#endif - /* * Locking primitives implementation. * Locks provide shared/exclusive synchronization. @@ -1468,6 +1463,9 @@ assert_sleepable(struct simplelock *interlock, const char *msg) #endif /* LOCKDEBUG */ /* } */ +int kernel_lock_id; +__cpu_simple_lock_t kernel_lock; + #if defined(MULTIPROCESSOR) /*