From 6f175a0e20cb55d7b1c3f882e3f1ecbd0503a094 Mon Sep 17 00:00:00 2001 From: julian Date: Thu, 10 Apr 2003 17:35:44 +0000 Subject: Move the _oncpu entry from the KSE to the thread. The entry in the KSE still exists but it's purpose will change a bit when we add the ability to lock a KSE to a cpu. --- sys/kern/kern_mutex.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'sys/kern/kern_mutex.c') 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. -- cgit v1.1