summaryrefslogtreecommitdiffstats
path: root/sys/kern/kern_condvar.c
diff options
context:
space:
mode:
authorattilio <attilio@FreeBSD.org>2012-09-13 22:26:22 +0000
committerattilio <attilio@FreeBSD.org>2012-09-13 22:26:22 +0000
commitd63ec4c4ce1de03b00bdd4813aeee11ee77907ea (patch)
tree98cf642eabc284875d15c5dcbebba86797df11e9 /sys/kern/kern_condvar.c
parent5bb226a48fff4750ea9116c30966dec033b67f4c (diff)
downloadFreeBSD-src-d63ec4c4ce1de03b00bdd4813aeee11ee77907ea.zip
FreeBSD-src-d63ec4c4ce1de03b00bdd4813aeee11ee77907ea.tar.gz
Remove all the checks on curthread != NULL with the exception of some MD
trap checks (eg. printtrap()). Generally this check is not needed anymore, as there is not a legitimate case where curthread != NULL, after pcpu 0 area has been properly initialized. Reviewed by: bde, jhb MFC after: 1 week
Diffstat (limited to 'sys/kern/kern_condvar.c')
-rw-r--r--sys/kern/kern_condvar.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/kern/kern_condvar.c b/sys/kern/kern_condvar.c
index 9355819..82a997c 100644
--- a/sys/kern/kern_condvar.c
+++ b/sys/kern/kern_condvar.c
@@ -50,7 +50,7 @@ __FBSDID("$FreeBSD$");
* Common sanity checks for cv_wait* functions.
*/
#define CV_ASSERT(cvp, lock, td) do { \
- KASSERT((td) != NULL, ("%s: curthread NULL", __func__)); \
+ KASSERT((td) != NULL, ("%s: td NULL", __func__)); \
KASSERT(TD_IS_RUNNING(td), ("%s: not TDS_RUNNING", __func__)); \
KASSERT((cvp) != NULL, ("%s: cvp NULL", __func__)); \
KASSERT((lock) != NULL, ("%s: lock NULL", __func__)); \
OpenPOWER on IntegriCloud