summaryrefslogtreecommitdiffstats
path: root/sys/kern/kern_clock.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_clock.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_clock.c')
-rw-r--r--sys/kern/kern_clock.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/kern/kern_clock.c b/sys/kern/kern_clock.c
index 248e4ea..d6c49d2 100644
--- a/sys/kern/kern_clock.c
+++ b/sys/kern/kern_clock.c
@@ -405,7 +405,7 @@ statclock(frame)
}
}
- sched_clock(td);
+ sched_clock(ke);
/* Update resource usage integrals and maximums. */
if ((pstats = p->p_stats) != NULL &&
OpenPOWER on IntegriCloud