Source-Changes-HG archive

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

[src/trunk]: src/sys/kern remove dated and wrong comments about curlwp being ...



details:   https://anonhg.NetBSD.org/src/rev/4a100f28c086
branches:  trunk
changeset: 750222:4a100f28c086
user:      mrg <mrg%NetBSD.org@localhost>
date:      Sun Dec 20 20:42:23 2009 +0000

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

diffstat:

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

diffs (37 lines):

diff -r f8e8f9d6bbc9 -r 4a100f28c086 sys/kern/kern_lock.c
--- a/sys/kern/kern_lock.c      Sun Dec 20 20:15:07 2009 +0000
+++ b/sys/kern/kern_lock.c      Sun Dec 20 20:42:23 2009 +0000
@@ -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)



Home | Main Index | Thread Index | Old Index