From ef4d4e378e012b3efd909e2abc5c1ddcf38faee7 Mon Sep 17 00:00:00 2001 From: jeff Date: Sat, 12 Oct 2002 05:32:24 +0000 Subject: - Create a new scheduler api that is defined in sys/sched.h - Begin moving scheduler specific functionality into sched_4bsd.c - Replace direct manipulation of scheduler data with hooks provided by the new api. - Remove KSE specific state modifications and single runq assumptions from kern_switch.c Reviewed by: -arch --- sys/kern/kern_subr.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'sys/kern/kern_subr.c') diff --git a/sys/kern/kern_subr.c b/sys/kern/kern_subr.c index 1a44b85..0656598 100644 --- a/sys/kern/kern_subr.c +++ b/sys/kern/kern_subr.c @@ -50,6 +50,7 @@ #include #include #include +#include #include #include @@ -554,7 +555,7 @@ uio_yield() td = curthread; mtx_lock_spin(&sched_lock); DROP_GIANT(); - td->td_priority = td->td_ksegrp->kg_user_pri; /* XXXKSE */ + sched_prio(td, td->td_ksegrp->kg_user_pri); /* XXXKSE */ td->td_proc->p_stats->p_ru.ru_nivcsw++; mi_switch(); mtx_unlock_spin(&sched_lock); -- cgit v1.1