diff options
author | jeff <jeff@FreeBSD.org> | 2007-10-08 23:45:24 +0000 |
---|---|---|
committer | jeff <jeff@FreeBSD.org> | 2007-10-08 23:45:24 +0000 |
commit | 57102cf5add6c7f7ca4dea8071ccd6e46560954e (patch) | |
tree | 55ed867f865288940221e212511cffaab3cd9b8e /sys/kern/p1003_1b.c | |
parent | 065472edb7ad38efc5b5b56f270ee332f76fea01 (diff) | |
download | FreeBSD-src-57102cf5add6c7f7ca4dea8071ccd6e46560954e.zip FreeBSD-src-57102cf5add6c7f7ca4dea8071ccd6e46560954e.tar.gz |
- Restore historical sched_yield() behavior by changing sched_relinquish()
to simply switch rather than lowering priority and switching. This allows
threads of equal priority to run but not lesser priority.
Discussed with: davidxu
Reported by: NIIMI Satoshi <sa2c@sa2c.net>
Approved by: re
Diffstat (limited to 'sys/kern/p1003_1b.c')
-rw-r--r-- | sys/kern/p1003_1b.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/kern/p1003_1b.c b/sys/kern/p1003_1b.c index 69497a4..e998385 100644 --- a/sys/kern/p1003_1b.c +++ b/sys/kern/p1003_1b.c @@ -241,7 +241,8 @@ int sched_yield(struct thread *td, struct sched_yield_args *uap) { - return (ksched_yield(ksched)); + sched_relinquish(curthread); + return 0; } int |