summaryrefslogtreecommitdiffstats
path: root/sys/kern/p1003_1b.c
diff options
context:
space:
mode:
authorjeff <jeff@FreeBSD.org>2007-10-08 23:45:24 +0000
committerjeff <jeff@FreeBSD.org>2007-10-08 23:45:24 +0000
commit57102cf5add6c7f7ca4dea8071ccd6e46560954e (patch)
tree55ed867f865288940221e212511cffaab3cd9b8e /sys/kern/p1003_1b.c
parent065472edb7ad38efc5b5b56f270ee332f76fea01 (diff)
downloadFreeBSD-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.c3
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
OpenPOWER on IntegriCloud