diff options
author | jeff <jeff@FreeBSD.org> | 2003-04-11 03:39:07 +0000 |
---|---|---|
committer | jeff <jeff@FreeBSD.org> | 2003-04-11 03:39:07 +0000 |
commit | a033a840068cb5293a714269fd8d0f731259b542 (patch) | |
tree | bcd37429fc86aa97a6c5365898aad0fe73ea4633 /sys/kern/kern_fork.c | |
parent | 86d593d3bd77f9805c1cb64e1be8cb329014c3ea (diff) | |
download | FreeBSD-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_fork.c')
-rw-r--r-- | sys/kern/kern_fork.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/kern/kern_fork.c b/sys/kern/kern_fork.c index 4cec7e3..8ca68f5 100644 --- a/sys/kern/kern_fork.c +++ b/sys/kern/kern_fork.c @@ -496,7 +496,7 @@ again: * Allow the scheduler to adjust the priority of the child and * parent while we hold the sched_lock. */ - sched_fork(td->td_ksegrp, kg2); + sched_fork(p1, p2); mtx_unlock_spin(&sched_lock); p2->p_ucred = crhold(td->td_ucred); |