summaryrefslogtreecommitdiffstats
path: root/sys/kern/subr_sleepqueue.c
diff options
context:
space:
mode:
authorattilio <attilio@FreeBSD.org>2013-03-02 14:28:31 +0000
committerattilio <attilio@FreeBSD.org>2013-03-02 14:28:31 +0000
commit17028bb6ae721ddd816b0adf0ac7cfd240621017 (patch)
tree552ad8a1c4bf28f2e23a04234aeab7a5decc3899 /sys/kern/subr_sleepqueue.c
parenta815147cd7c785945e4c4bc79952f6102d52415d (diff)
parent5d33901b24a0ca4496b12ca2299df4b62dfdfd35 (diff)
downloadFreeBSD-src-17028bb6ae721ddd816b0adf0ac7cfd240621017.zip
FreeBSD-src-17028bb6ae721ddd816b0adf0ac7cfd240621017.tar.gz
MFC
Diffstat (limited to 'sys/kern/subr_sleepqueue.c')
-rw-r--r--sys/kern/subr_sleepqueue.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/kern/subr_sleepqueue.c b/sys/kern/subr_sleepqueue.c
index b6bd8fc..f187544 100644
--- a/sys/kern/subr_sleepqueue.c
+++ b/sys/kern/subr_sleepqueue.c
@@ -296,8 +296,8 @@ sleepq_add(void *wchan, struct lock_object *lock, const char *wmesg, int flags,
MPASS((queue >= 0) && (queue < NR_SLEEPQS));
/* If this thread is not allowed to sleep, die a horrible death. */
- KASSERT(!(td->td_pflags & TDP_NOSLEEPING),
- ("%s: td %p to sleep on wchan %p with TDP_NOSLEEPING on",
+ KASSERT(td->td_no_sleeping == 0,
+ ("%s: td %p to sleep on wchan %p with sleeping prohibited",
__func__, td, wchan));
/* Look up the sleep queue associated with the wait channel 'wchan'. */
OpenPOWER on IntegriCloud