1
0
mirror of https://git.FreeBSD.org/src.git synced 2025-02-06 18:29:47 +00:00

- Fix a minor problem with my last commit, we don't want to return from

sched_switch if the thread is running, we want to fall through and pick
   a new thread because we have been preempted.
This commit is contained in:
Jeff Roberson 2003-10-16 10:04:54 +00:00
parent c16ec48bfb
commit b72f347bdb
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=121132

View File

@ -815,9 +815,7 @@ sched_switch(struct thread *td)
runq_add(ke->ke_runq, ke);
/* setrunqueue(td); */
}
return;
}
if (ke->ke_runq)
} else if (ke->ke_runq)
kseq_rem(KSEQ_CPU(ke->ke_cpu), ke);
/*
* We will not be on the run queue. So we must be