summaryrefslogtreecommitdiffstats
path: root/sys/sys/sched.h
diff options
context:
space:
mode:
authortrasz <trasz@FreeBSD.org>2012-10-26 16:01:08 +0000
committertrasz <trasz@FreeBSD.org>2012-10-26 16:01:08 +0000
commitd97338334a7696793856e52982abcf531ba728cf (patch)
tree842a8cfc3ef8239e42a28dbb369918bc9a00b13e /sys/sys/sched.h
parent5f08f2efa84de1e44eed353961807024d5b221aa (diff)
downloadFreeBSD-src-d97338334a7696793856e52982abcf531ba728cf.zip
FreeBSD-src-d97338334a7696793856e52982abcf531ba728cf.tar.gz
Add CPU percentage limit enforcement to RCTL. The resouce name is "pcpu".
It was implemented by Rudolf Tomori during Google Summer of Code 2012.
Diffstat (limited to 'sys/sys/sched.h')
-rw-r--r--sys/sys/sched.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/sys/sys/sched.h b/sys/sys/sched.h
index 4b8387c..b15104e 100644
--- a/sys/sys/sched.h
+++ b/sys/sys/sched.h
@@ -103,6 +103,11 @@ void sched_user_prio(struct thread *td, u_char prio);
void sched_userret(struct thread *td);
void sched_wakeup(struct thread *td);
void sched_preempt(struct thread *td);
+#ifdef RACCT
+#ifdef SCHED_4BSD
+fixpt_t sched_pctcpu_delta(struct thread *td);
+#endif
+#endif
/*
* Threads are moved on and off of run queues
OpenPOWER on IntegriCloud