diff options
author | julian <julian@FreeBSD.org> | 2003-02-17 09:55:10 +0000 |
---|---|---|
committer | julian <julian@FreeBSD.org> | 2003-02-17 09:55:10 +0000 |
commit | af55753a063a04a847a53c2946cd5fbf413a1e0f (patch) | |
tree | 775429b184310789a1eb3bc1be8451f6faf1abf4 /sys/kern/sched_ule.c | |
parent | 653bc68f5387baeae2f13b7f346d29659904e188 (diff) | |
download | FreeBSD-src-af55753a063a04a847a53c2946cd5fbf413a1e0f.zip FreeBSD-src-af55753a063a04a847a53c2946cd5fbf413a1e0f.tar.gz |
Move a bunch of flags from the KSE to the thread.
I was in two minds as to where to put them in the first case..
I should have listenned to the other mind.
Submitted by: parts by davidxu@
Reviewed by: jeff@ mini@
Diffstat (limited to 'sys/kern/sched_ule.c')
-rw-r--r-- | sys/kern/sched_ule.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/sys/kern/sched_ule.c b/sys/kern/sched_ule.c index b96725b..d6a2910 100644 --- a/sys/kern/sched_ule.c +++ b/sys/kern/sched_ule.c @@ -492,7 +492,7 @@ sched_switchout(struct thread *td) td->td_last_kse = ke; td->td_lastcpu = ke->ke_oncpu; ke->ke_oncpu = NOCPU; - ke->ke_flags &= ~KEF_NEEDRESCHED; + td->td_flags &= ~TDF_NEEDRESCHED; if (TD_IS_RUNNING(td)) { setrunqueue(td); @@ -518,7 +518,7 @@ sched_switchin(struct thread *td) #if SCHED_STRICT_RESCHED if (td->td_ksegrp->kg_pri_class == PRI_TIMESHARE && td->td_priority != td->td_ksegrp->kg_user_pri) - curthread->td_kse->ke_flags |= KEF_NEEDRESCHED; + curthread->td_flags |= TDF_NEEDRESCHED; #endif } @@ -530,7 +530,7 @@ sched_nice(struct ksegrp *kg, int nice) kg->kg_nice = nice; sched_priority(kg); FOREACH_THREAD_IN_GROUP(kg, td) { - td->td_kse->ke_flags |= KEF_NEEDRESCHED; + td->td_flags |= TDF_NEEDRESCHED; } } @@ -584,7 +584,7 @@ sched_wakeup(struct thread *td) setrunqueue(td); #if SCHED_STRICT_RESCHED if (td->td_priority < curthread->td_priority) - curthread->td_kse->ke_flags |= KEF_NEEDRESCHED; + curthread->td_flags |= TDF_NEEDRESCHED; #endif } @@ -686,7 +686,7 @@ sched_clock(struct thread *td) if (nke && nke->ke_thread && nke->ke_thread->td_priority < td->td_priority) - ke->ke_flags |= KEF_NEEDRESCHED; + td->td_flags |= TDF_NEEDRESCHED; #endif /* * We used a tick charge it to the ksegrp so that we can compute our @@ -704,7 +704,7 @@ sched_clock(struct thread *td) if (ke->ke_slice == 0) { td->td_priority = sched_priority(kg); ke->ke_slice = sched_slice(kg); - ke->ke_flags |= KEF_NEEDRESCHED; + td->td_flags |= TDF_NEEDRESCHED; ke->ke_runq = NULL; } } |