summaryrefslogtreecommitdiffstats
path: root/sys/kern/kern_resource.c
diff options
context:
space:
mode:
authorjeff <jeff@FreeBSD.org>2003-04-11 03:39:07 +0000
committerjeff <jeff@FreeBSD.org>2003-04-11 03:39:07 +0000
commita033a840068cb5293a714269fd8d0f731259b542 (patch)
treebcd37429fc86aa97a6c5365898aad0fe73ea4633 /sys/kern/kern_resource.c
parent86d593d3bd77f9805c1cb64e1be8cb329014c3ea (diff)
downloadFreeBSD-src-a033a840068cb5293a714269fd8d0f731259b542.zip
FreeBSD-src-a033a840068cb5293a714269fd8d0f731259b542.tar.gz
- Adjust sched hooks for fork and exec to take processes as arguments instead
of ksegs since they primarily operation on processes. - KSEs take ticks so pass the kse through sched_clock(). - Add a sched_class() routine that adjusts a ksegrp pri class. - Define a sched_fork_{kse,thread,ksegrp} and sched_exit_{kse,thread,ksegrp} that will be used to tell the scheduler about new instances of these structures within the same process. These will be used by THR and KSE. - Change sched_4bsd to reflect this API update.
Diffstat (limited to 'sys/kern/kern_resource.c')
-rw-r--r--sys/kern/kern_resource.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/kern/kern_resource.c b/sys/kern/kern_resource.c
index 5dfbfd7..b72520c 100644
--- a/sys/kern/kern_resource.c
+++ b/sys/kern/kern_resource.c
@@ -407,7 +407,7 @@ rtp_to_pri(struct rtprio *rtp, struct ksegrp *kg)
default:
return (EINVAL);
}
- kg->kg_pri_class = rtp->type;
+ sched_class(kg, rtp->type);
if (curthread->td_ksegrp == kg) {
curthread->td_base_pri = kg->kg_user_pri;
curthread->td_priority = kg->kg_user_pri; /* XXX dubious */
OpenPOWER on IntegriCloud