Module Name:    src
Committed By:   mrg
Date:           Sun Dec 20 20:42:24 UTC 2009

Modified Files:
        src/sys/kern: kern_lock.c

Log Message:
remove dated and wrong comments about curlwp being NULL.
_kernel_{,un}lock() always assume it is valid now.


To generate a diff of this commit:
cvs rdiff -u -r1.149 -r1.150 src/sys/kern/kern_lock.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/kern/kern_lock.c
diff -u src/sys/kern/kern_lock.c:1.149 src/sys/kern/kern_lock.c:1.150
--- src/sys/kern/kern_lock.c:1.149	Fri Jul 17 22:17:37 2009
+++ src/sys/kern/kern_lock.c	Sun Dec 20 20:42:23 2009
@@ -1,4 +1,4 @@
-/*	$NetBSD: kern_lock.c,v 1.149 2009/07/17 22:17:37 dyoung Exp $	*/
+/*	$NetBSD: kern_lock.c,v 1.150 2009/12/20 20:42:23 mrg Exp $	*/
 
 /*-
  * Copyright (c) 2002, 2006, 2007, 2008, 2009 The NetBSD Foundation, Inc.
@@ -31,7 +31,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: kern_lock.c,v 1.149 2009/07/17 22:17:37 dyoung Exp $");
+__KERNEL_RCSID(0, "$NetBSD: kern_lock.c,v 1.150 2009/12/20 20:42:23 mrg Exp $");
 
 #include <sys/param.h>
 #include <sys/proc.h>
@@ -149,8 +149,7 @@
 }
 
 /*
- * Acquire 'nlocks' holds on the kernel lock.  If 'l' is non-null, the
- * acquisition is from process context.
+ * Acquire 'nlocks' holds on the kernel lock.
  */
 void
 _kernel_lock(int nlocks)
@@ -257,7 +256,7 @@
 
 /*
  * Release 'nlocks' holds on the kernel lock.  If 'nlocks' is zero, release
- * all holds.  If 'l' is non-null, the release is from process context.
+ * all holds.
  */
 void
 _kernel_unlock(int nlocks, int *countp)

Reply via email to