summaryrefslogtreecommitdiffstats
path: root/sys/kern/kern_mutex.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/kern/kern_mutex.c')
-rw-r--r--sys/kern/kern_mutex.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/kern/kern_mutex.c b/sys/kern/kern_mutex.c
index 6a734d0..0722931 100644
--- a/sys/kern/kern_mutex.c
+++ b/sys/kern/kern_mutex.c
@@ -72,7 +72,8 @@
/* XXXKSE This test will change. */
#define thread_running(td) \
- ((td)->td_kse != NULL && (td)->td_kse->ke_oncpu != NOCPU)
+ (td->td_state == TDS_RUNNING)
+ /* ((td)->td_oncpu != NOCPU) */
/*
* Lock classes for sleep and spin mutexes.
OpenPOWER on IntegriCloud