- Refrain from setting the td_priority in sched_wakeup(). It will be reset

before we return to user space.
This commit is contained in:
Jeff Roberson 2003-03-03 04:11:40 +00:00
parent dcae7539cb
commit f1e8dc4a3b
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=111788

View File

@ -560,21 +560,20 @@ sched_sleep(struct thread *td, u_char prio)
void
sched_wakeup(struct thread *td)
{
struct ksegrp *kg;
mtx_assert(&sched_lock, MA_OWNED);
/*
* Let the kseg know how long we slept for. This is because process
* interactivity behavior is modeled in the kseg.
*/
kg = td->td_ksegrp;
if (td->td_slptime) {
struct ksegrp *kg;
kg = td->td_ksegrp;
kg->kg_slptime += (ticks - td->td_slptime) * 1024;
td->td_priority = sched_priority(kg);
sched_priority(kg);
td->td_slptime = 0;
}
td->td_slptime = 0;
#ifdef SMP
if (td->td_priority < PZERO && td->td_schedflag & TD_SCHED_BLOAD) {
kseq_wakeup(KSEQ_CPU(td->td_kse->ke_cpu), td->td_kse);