diff options
author | jeff <jeff@FreeBSD.org> | 2003-10-16 10:04:54 +0000 |
---|---|---|
committer | jeff <jeff@FreeBSD.org> | 2003-10-16 10:04:54 +0000 |
commit | 6e062906a756066856acc04a9b5a4ab0ab08a4d1 (patch) | |
tree | d9a4c28434240c23794b2590b8723ea5557828b7 /sys/kern/sched_ule.c | |
parent | f21d0fada627381a1d50befb8828673b5cd9abf2 (diff) | |
download | FreeBSD-src-6e062906a756066856acc04a9b5a4ab0ab08a4d1.zip FreeBSD-src-6e062906a756066856acc04a9b5a4ab0ab08a4d1.tar.gz |
- 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.
Diffstat (limited to 'sys/kern/sched_ule.c')
-rw-r--r-- | sys/kern/sched_ule.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/sys/kern/sched_ule.c b/sys/kern/sched_ule.c index 1045122..4ed437c 100644 --- a/sys/kern/sched_ule.c +++ b/sys/kern/sched_ule.c @@ -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 |