aboutsummaryrefslogtreecommitdiff
path: root/sys/sys/systm.h
diff options
context:
space:
mode:
authorDavide Italiano <davide@FreeBSD.org>2013-03-04 11:09:56 +0000
committerDavide Italiano <davide@FreeBSD.org>2013-03-04 11:09:56 +0000
commit5b999a6be0c062c06ef35d82935f7333c118ee48 (patch)
tree0c872a90fed688dcf8a42c76624fcacd6e02d513 /sys/sys/systm.h
parent8fd49af627911a9f8aae03eafe5cd2fdc49144a6 (diff)
downloadsrc-5b999a6be0c062c06ef35d82935f7333c118ee48.tar.gz
src-5b999a6be0c062c06ef35d82935f7333c118ee48.zip
- Make callout(9) tickless, relying on eventtimers(4) as backend for
precise time event generation. This greatly improves granularity of callouts which are not anymore constrained to wait next tick to be scheduled. - Extend the callout KPI introducing a set of callout_reset_sbt* functions, which take a sbintime_t as timeout argument. The new KPI also offers a way for consumers to specify precision tolerance they allow, so that callout can coalesce events and reduce number of interrupts as well as potentially avoid scheduling a SWI thread. - Introduce support for dispatching callouts directly from hardware interrupt context, specifying an additional flag. This feature should be used carefully, as long as interrupt context has some limitations (e.g. no sleeping locks can be held). - Enhance mechanisms to gather informations about callwheel, introducing a new sysctl to obtain stats. This change breaks the KBI. struct callout fields has been changed, in particular 'int ticks' (4 bytes) has been replaced with 'sbintime_t' (8 bytes) and another 'sbintime_t' field was added for precision. Together with: mav Reviewed by: attilio, bde, luigi, phk Sponsored by: Google Summer of Code 2012, iXsystems inc. Tested by: flo (amd64, sparc64), marius (sparc64), ian (arm), markj (amd64), mav, Fabian Keil
Notes
Notes: svn path=/head/; revision=247777
Diffstat (limited to 'sys/sys/systm.h')
-rw-r--r--sys/sys/systm.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/sys/systm.h b/sys/sys/systm.h
index 11a9cf942b9e..85fa1c8e7bca 100644
--- a/sys/sys/systm.h
+++ b/sys/sys/systm.h
@@ -269,6 +269,7 @@ void cpu_startprofclock(void);
void cpu_stopprofclock(void);
sbintime_t cpu_idleclock(void);
void cpu_activeclock(void);
+void cpu_new_callout(int cpu, sbintime_t bt, sbintime_t bt_opt);
extern int cpu_can_deep_sleep;
extern int cpu_disable_deep_sleep;