diff options
author | julian <julian@FreeBSD.org> | 2003-04-10 17:35:44 +0000 |
---|---|---|
committer | julian <julian@FreeBSD.org> | 2003-04-10 17:35:44 +0000 |
commit | 6f175a0e20cb55d7b1c3f882e3f1ecbd0503a094 (patch) | |
tree | a36a5c6a854637e4e73e7256b937922489d07ddb /sys/kern/subr_turnstile.c | |
parent | 2a488098e335f6345e9235190cdc78fa82e9d61f (diff) | |
download | FreeBSD-src-6f175a0e20cb55d7b1c3f882e3f1ecbd0503a094.zip FreeBSD-src-6f175a0e20cb55d7b1c3f882e3f1ecbd0503a094.tar.gz |
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.
Diffstat (limited to 'sys/kern/subr_turnstile.c')
-rw-r--r-- | sys/kern/subr_turnstile.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/kern/subr_turnstile.c b/sys/kern/subr_turnstile.c index 6a734d0..0722931 100644 --- a/sys/kern/subr_turnstile.c +++ b/sys/kern/subr_turnstile.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. |