summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorTed Unangst <tedu@cvs.openbsd.org>2013-05-01 17:18:56 +0000
committerTed Unangst <tedu@cvs.openbsd.org>2013-05-01 17:18:56 +0000
commit8f1899d4e946387009afb519380da197a9ce06d7 (patch)
tree413e22c40e178fa437a7143b950f02e11d92e0ab /sys
parentc0430be1727a23297df2ed35783c626aad9b154d (diff)
a few tweaks noticed by jsing
Diffstat (limited to 'sys')
-rw-r--r--sys/kern/kern_lock.c4
-rw-r--r--sys/kern/kern_rwlock.c4
2 files changed, 3 insertions, 5 deletions
diff --git a/sys/kern/kern_lock.c b/sys/kern/kern_lock.c
index 9593ac5b276..77a883c1c8f 100644
--- a/sys/kern/kern_lock.c
+++ b/sys/kern/kern_lock.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: kern_lock.c,v 1.40 2013/05/01 17:13:05 tedu Exp $ */
+/* $OpenBSD: kern_lock.c,v 1.41 2013/05/01 17:18:55 tedu Exp $ */
/*
* Copyright (c) 1995
@@ -42,7 +42,7 @@
#include <sys/sched.h>
#ifdef MP_LOCKDEBUG
-/* CPU-dependent timing, needs this to be settable from ddb. */
+/* CPU-dependent timing, this needs to be settable from ddb. */
int __mp_lock_spinout = 200000000;
#endif
diff --git a/sys/kern/kern_rwlock.c b/sys/kern/kern_rwlock.c
index d417012bc1f..596f302308b 100644
--- a/sys/kern/kern_rwlock.c
+++ b/sys/kern/kern_rwlock.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: kern_rwlock.c,v 1.18 2013/05/01 17:13:05 tedu Exp $ */
+/* $OpenBSD: kern_rwlock.c,v 1.19 2013/05/01 17:18:55 tedu Exp $ */
/*
* Copyright (c) 2002, 2003 Artur Grabowski <art@openbsd.org>
@@ -256,7 +256,6 @@ rw_exit(struct rwlock *rwl)
int
rw_status(struct rwlock *rwl)
{
-
return (rwl->rwl_owner != 0L);
}
@@ -334,6 +333,5 @@ rrw_exit(struct rrwlock *rrwl)
int
rrw_status(struct rrwlock *rrwl)
{
-
return (rw_status(&rrwl->rrwl_lock));
}