summaryrefslogtreecommitdiffstats
path: root/sys/kern/kern_proc.c
diff options
context:
space:
mode:
authordavidxu <davidxu@FreeBSD.org>2002-10-22 02:27:19 +0000
committerdavidxu <davidxu@FreeBSD.org>2002-10-22 02:27:19 +0000
commit94b30e0ab56f1ea0567adc39582f2a02f9c28344 (patch)
treeab9af9284041721d37c736375ea8b9da2561e4f2 /sys/kern/kern_proc.c
parent4e7f1e8a5dbdbcb81e5dc2ea3025db9fdcc771e2 (diff)
downloadFreeBSD-src-94b30e0ab56f1ea0567adc39582f2a02f9c28344.zip
FreeBSD-src-94b30e0ab56f1ea0567adc39582f2a02f9c28344.tar.gz
detect idle kse correctly.
Diffstat (limited to 'sys/kern/kern_proc.c')
-rw-r--r--sys/kern/kern_proc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/kern/kern_proc.c b/sys/kern/kern_proc.c
index e38a6fb..960421f 100644
--- a/sys/kern/kern_proc.c
+++ b/sys/kern/kern_proc.c
@@ -346,7 +346,7 @@ kse_wakeup(struct thread *td, struct kse_wakeup_args *uap)
FOREACH_KSE_IN_GROUP(kg, ke2) {
if (ke2->ke_mailbox != uap->mbx)
continue;
- if (ke2->ke_flags & KEF_IDLEKSE) {
+ if (ke2->ke_state == KES_IDLE) {
ke = ke2;
goto found;
} else {
OpenPOWER on IntegriCloud