summaryrefslogtreecommitdiffstats
path: root/sys/kern/kern_subr.c
diff options
context:
space:
mode:
authorjeff <jeff@FreeBSD.org>2002-10-12 05:32:24 +0000
committerjeff <jeff@FreeBSD.org>2002-10-12 05:32:24 +0000
commitef4d4e378e012b3efd909e2abc5c1ddcf38faee7 (patch)
tree69991942d3c51153d9210031e7380779edf05aaf /sys/kern/kern_subr.c
parentcf318b70e5aa88b25cdf3d47eacce75c5aa889db (diff)
downloadFreeBSD-src-ef4d4e378e012b3efd909e2abc5c1ddcf38faee7.zip
FreeBSD-src-ef4d4e378e012b3efd909e2abc5c1ddcf38faee7.tar.gz
- 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
Diffstat (limited to 'sys/kern/kern_subr.c')
-rw-r--r--sys/kern/kern_subr.c3
1 files changed, 2 insertions, 1 deletions
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 <sys/proc.h>
#include <sys/malloc.h>
#include <sys/resourcevar.h>
+#include <sys/sched.h>
#include <sys/sysctl.h>
#include <sys/vnode.h>
@@ -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);
OpenPOWER on IntegriCloud