summaryrefslogtreecommitdiffstats
path: root/sys/kern
diff options
context:
space:
mode:
authordavidxu <davidxu@FreeBSD.org>2010-02-03 07:21:20 +0000
committerdavidxu <davidxu@FreeBSD.org>2010-02-03 07:21:20 +0000
commit47ff0c69adf5dace8bccec50c27d24cd89dc9490 (patch)
treee20e0a7dcab138147c2daf9b825166051f1b6354 /sys/kern
parent1638fb996a2d8c3947bb5058ee5537fdc1e67456 (diff)
downloadFreeBSD-src-47ff0c69adf5dace8bccec50c27d24cd89dc9490.zip
FreeBSD-src-47ff0c69adf5dace8bccec50c27d24cd89dc9490.tar.gz
Fix comments in do_sem_wait().
Diffstat (limited to 'sys/kern')
-rw-r--r--sys/kern/kern_umtx.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/kern/kern_umtx.c b/sys/kern/kern_umtx.c
index 135f7c7..80559ba 100644
--- a/sys/kern/kern_umtx.c
+++ b/sys/kern/kern_umtx.c
@@ -2864,8 +2864,7 @@ do_sem_wait(struct thread *td, struct _usem *sem, struct timespec *timeout)
}
/*
- * The magic thing is we should set c_has_waiters to 1 before
- * releasing user mutex.
+ * set waiters byte and sleep.
*/
suword32(__DEVOLATILE(uint32_t *, &sem->_has_waiters), 1);
OpenPOWER on IntegriCloud