Author: rpaulo
Date: Tue Apr 20 17:22:20 2010
New Revision: 206902
URL: http://svn.freebsd.org/changeset/base/206902

Log:
  Add the necessary hooks for dtrace cyclic module.

Modified:
  head/sys/mips/mips/tick.c

Modified: head/sys/mips/mips/tick.c
==============================================================================
--- head/sys/mips/mips/tick.c   Tue Apr 20 17:03:30 2010        (r206901)
+++ head/sys/mips/mips/tick.c   Tue Apr 20 17:22:20 2010        (r206902)
@@ -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) {
_______________________________________________
svn-src-head@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to