summaryrefslogtreecommitdiffstats
path: root/sys/kern/sched_4bsd.c
diff options
context:
space:
mode:
authorjeff <jeff@FreeBSD.org>2002-11-21 09:30:55 +0000
committerjeff <jeff@FreeBSD.org>2002-11-21 09:30:55 +0000
commitd5eb61ea8d5cf09af5c88effaa1786a4a9fad320 (patch)
treefde42729368c00945f803b78aa2601387000aefe /sys/kern/sched_4bsd.c
parentde79ec94a5618dc0948e9e4033e44e677d1ae16a (diff)
downloadFreeBSD-src-d5eb61ea8d5cf09af5c88effaa1786a4a9fad320.zip
FreeBSD-src-d5eb61ea8d5cf09af5c88effaa1786a4a9fad320.tar.gz
- Add the new sched_pctcpu() function to the sched_* api.
- Provide a routine in sched_4bsd to add this functionality. - Use sched_pctcpu() in kern_proc, which is the one place outside of sched_4bsd where the old pctcpu value was accessed directly. Approved by: re
Diffstat (limited to 'sys/kern/sched_4bsd.c')
-rw-r--r--sys/kern/sched_4bsd.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/sys/kern/sched_4bsd.c b/sys/kern/sched_4bsd.c
index 04ed3f3..7c4aa80 100644
--- a/sys/kern/sched_4bsd.c
+++ b/sys/kern/sched_4bsd.c
@@ -648,3 +648,9 @@ sched_sizeof_thread(void)
{
return (sizeof(struct thread));
}
+
+fixpt_t
+sched_pctcpu(struct kse *ke)
+{
+ return (ke->ke_pctcpu);
+}
OpenPOWER on IntegriCloud