aboutsummaryrefslogtreecommitdiff
path: root/sys/kern/kern_intr.c
diff options
context:
space:
mode:
authorJulian Elischer <julian@FreeBSD.org>2003-05-02 00:33:12 +0000
committerJulian Elischer <julian@FreeBSD.org>2003-05-02 00:33:12 +0000
commitb1ac98d8b27a21983ff38293ee3bb7e961552a64 (patch)
tree354160c488b1394b67dd663bd12e8767fd5a36cf /sys/kern/kern_intr.c
parent8705f13eab6fa0e0fe3fe02533280bfc9fb41e20 (diff)
Move the flag that indicates an idle thread from the KSE to the thread.
It was always referenced via the thread anyhow. Reviewed by: jhb (a LOOOOONG time ago)
Notes
Notes: svn path=/head/; revision=114471
Diffstat (limited to 'sys/kern/kern_intr.c')
-rw-r--r--sys/kern/kern_intr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/kern/kern_intr.c b/sys/kern/kern_intr.c
index 5a1a0c2ba677..3405687a9ee3 100644
--- a/sys/kern/kern_intr.c
+++ b/sys/kern/kern_intr.c
@@ -397,7 +397,7 @@ ithread_schedule(struct ithd *ithread, int do_switch)
KASSERT((TD_IS_RUNNING(ctd)),
("ithread_schedule: Bad state for curthread."));
ctd->td_proc->p_stats->p_ru.ru_nivcsw++;
- if (ctd->td_kse->ke_flags & KEF_IDLEKSE)
+ if (ctd->td_flags & TDF_IDLETD)
ctd->td_state = TDS_CAN_RUN; /* XXXKSE */
mi_switch();
} else {