summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorJeff Roberson <jeff@FreeBSD.org>2007-10-08 23:45:24 +0000
committerJeff Roberson <jeff@FreeBSD.org>2007-10-08 23:45:24 +0000
commit05dc0eb204847e4549a97c587571e203ff4adc2f (patch)
tree55ed867f865288940221e212511cffaab3cd9b8e /sys
parent40a940af86dc2cab22ad4779077792c28e82a85e (diff)
Notes
Diffstat (limited to 'sys')
-rw-r--r--sys/kern/p1003_1b.c3
-rw-r--r--sys/kern/sched_4bsd.c2
-rw-r--r--sys/kern/sched_ule.c2
3 files changed, 2 insertions, 5 deletions
diff --git a/sys/kern/p1003_1b.c b/sys/kern/p1003_1b.c
index 69497a466dde..e998385dca2a 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
diff --git a/sys/kern/sched_4bsd.c b/sys/kern/sched_4bsd.c
index 0573be08e101..50f9aafcab13 100644
--- a/sys/kern/sched_4bsd.c
+++ b/sys/kern/sched_4bsd.c
@@ -1324,8 +1324,6 @@ void
sched_relinquish(struct thread *td)
{
thread_lock(td);
- if (td->td_pri_class == PRI_TIMESHARE)
- sched_prio(td, PRI_MAX_TIMESHARE);
SCHED_STAT_INC(switch_relinquish);
mi_switch(SW_VOL, NULL);
thread_unlock(td);
diff --git a/sys/kern/sched_ule.c b/sys/kern/sched_ule.c
index 23920cf9027b..77cf83f0fe51 100644
--- a/sys/kern/sched_ule.c
+++ b/sys/kern/sched_ule.c
@@ -2540,8 +2540,6 @@ void
sched_relinquish(struct thread *td)
{
thread_lock(td);
- if (td->td_pri_class == PRI_TIMESHARE)
- sched_prio(td, PRI_MAX_TIMESHARE);
SCHED_STAT_INC(switch_relinquish);
mi_switch(SW_VOL, NULL);
thread_unlock(td);