summaryrefslogtreecommitdiffstats
path: root/sys/kern/kern_intr.c
diff options
context:
space:
mode:
authorjulian <julian@FreeBSD.org>2003-05-02 00:33:12 +0000
committerjulian <julian@FreeBSD.org>2003-05-02 00:33:12 +0000
commita954908b3534f6488e4e563f6d2912c3df9d750e (patch)
tree354160c488b1394b67dd663bd12e8767fd5a36cf /sys/kern/kern_intr.c
parent14593b22f8b42102305b3d161ae6334b6e445eb4 (diff)
downloadFreeBSD-src-a954908b3534f6488e4e563f6d2912c3df9d750e.zip
FreeBSD-src-a954908b3534f6488e4e563f6d2912c3df9d750e.tar.gz
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)
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 5a1a0c2..3405687 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 {
OpenPOWER on IntegriCloud