diff options
author | avg <avg@FreeBSD.org> | 2011-05-16 15:29:59 +0000 |
---|---|---|
committer | avg <avg@FreeBSD.org> | 2011-05-16 15:29:59 +0000 |
commit | 576b51ab8f786d77da023fb2e83fdc1fb0c7abf6 (patch) | |
tree | b2c4b470c3bfa995c74975f76d90d27867ff83a4 /sys/sys/dtrace_bsd.h | |
parent | 90fe5b5b3e46a2da849cf8d0bba00f4834d39398 (diff) | |
download | FreeBSD-src-576b51ab8f786d77da023fb2e83fdc1fb0c7abf6.zip FreeBSD-src-576b51ab8f786d77da023fb2e83fdc1fb0c7abf6.tar.gz |
better integrate cyclic module with clocksource/eventtimer subsystem
Now in the case when one-shot timers are used cyclic events should fire
closer to theier scheduled times. As the cyclic is currently used only
to drive DTrace profile provider, this is the area where the change
makes a difference.
Reviewed by: mav (earlier version, a while ago)
X-MFC after: clocksource/eventtimer subsystem
Diffstat (limited to 'sys/sys/dtrace_bsd.h')
-rw-r--r-- | sys/sys/dtrace_bsd.h | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/sys/sys/dtrace_bsd.h b/sys/sys/dtrace_bsd.h index 2eded7b..15e1be9 100644 --- a/sys/sys/dtrace_bsd.h +++ b/sys/sys/dtrace_bsd.h @@ -44,14 +44,9 @@ struct reg; * subsystem into the appropriate timer interrupt. */ typedef void (*cyclic_clock_func_t)(struct trapframe *); +extern cyclic_clock_func_t cyclic_clock_func; -/* - * These external variables are actually machine-dependent, so - * they might not actually exist. - * - * Defining them here avoids a proliferation of header files. - */ -extern cyclic_clock_func_t cyclic_clock_func[]; +void clocksource_cyc_set(const struct bintime *t); /* * The dtrace module handles traps that occur during a DTrace probe. |