summaryrefslogtreecommitdiff
path: root/sys/kern/sched_ule.c
diff options
context:
space:
mode:
authorJulian Elischer <julian@FreeBSD.org>2003-04-10 17:35:44 +0000
committerJulian Elischer <julian@FreeBSD.org>2003-04-10 17:35:44 +0000
commit060563ec50bb91f09342fce9faf1878fdaafff0b (patch)
treea36a5c6a854637e4e73e7256b937922489d07ddb /sys/kern/sched_ule.c
parentfff890d0e8f5cb43b2704c0c5fc39cbbc8a32077 (diff)
Notes
Diffstat (limited to 'sys/kern/sched_ule.c')
-rw-r--r--sys/kern/sched_ule.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/kern/sched_ule.c b/sys/kern/sched_ule.c
index 190b4d64ee9a..bd9759cd92a9 100644
--- a/sys/kern/sched_ule.c
+++ b/sys/kern/sched_ule.c
@@ -643,8 +643,8 @@ sched_switchout(struct thread *td)
ke = td->td_kse;
td->td_last_kse = ke;
- td->td_lastcpu = ke->ke_oncpu;
- ke->ke_oncpu = NOCPU;
+ td->td_lastcpu = td->td_oncpu;
+ td->td_oncpu = NOCPU;
td->td_flags &= ~TDF_NEEDRESCHED;
if (TD_IS_RUNNING(td)) {
@@ -667,7 +667,7 @@ sched_switchin(struct thread *td)
/* struct kse *ke = td->td_kse; */
mtx_assert(&sched_lock, MA_OWNED);
- td->td_kse->ke_oncpu = PCPU_GET(cpuid);
+ td->td_oncpu = PCPU_GET(cpuid);
#if SCHED_STRICT_RESCHED
if (td->td_ksegrp->kg_pri_class == PRI_TIMESHARE &&
td->td_priority != td->td_ksegrp->kg_user_pri)