summaryrefslogtreecommitdiffstats
path: root/sys/mips
diff options
context:
space:
mode:
authorrpaulo <rpaulo@FreeBSD.org>2010-04-20 17:22:20 +0000
committerrpaulo <rpaulo@FreeBSD.org>2010-04-20 17:22:20 +0000
commit6731bb89eb0c51d7b07547da33861549624619ba (patch)
tree821a57eb1d8eb3532a63cb7c1d2ad3d10c41e4aa /sys/mips
parent7a84f3701db890c3378f9c37609be44afe0257c4 (diff)
downloadFreeBSD-src-6731bb89eb0c51d7b07547da33861549624619ba.zip
FreeBSD-src-6731bb89eb0c51d7b07547da33861549624619ba.tar.gz
Add the necessary hooks for dtrace cyclic module.
Diffstat (limited to 'sys/mips')
-rw-r--r--sys/mips/mips/tick.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/sys/mips/mips/tick.c b/sys/mips/mips/tick.c
index d2678b1..9a9108c 100644
--- a/sys/mips/mips/tick.c
+++ b/sys/mips/mips/tick.c
@@ -295,7 +295,16 @@ clock_intr(void *arg)
*/
if (delta > cycles_per_hz)
delta = cycles_per_hz;
-
+#if KDTRACE_HOOKS
+ /*
+ * If the DTrace hooks are configured and a callback function
+ * has been registered, then call it to process the high speed
+ * timers.
+ */
+ int cpu = PCPU_GET(cpuid);
+ if (cyclic_clock_func[cpu] != NULL)
+ (*cyclic_clock_func[cpu])(tf);
+#endif
/* Fire hardclock at hz. */
cpu_ticks->hard_ticks += delta;
if (cpu_ticks->hard_ticks >= cycles_per_hz) {
OpenPOWER on IntegriCloud