Print this page
OS-2366 ddi_periodic_add(9F) is entirely rubbish

@@ -24,10 +24,14 @@
  */
 
 /*      Copyright (c) 1988 AT&T */
 /*        All Rights Reserved   */
 
+/*
+ * Copyright (c) 2013, Joyent, Inc. All rights reserved.
+ */
+
 #include <sys/types.h>
 #include <sys/param.h>
 #include <sys/sysmacros.h>
 #include <sys/pcb.h>
 #include <sys/systm.h>

@@ -51,11 +55,11 @@
 #include <sys/cmn_err.h>
 #include <sys/vmparam.h>
 #include <sys/modctl.h>
 #include <sys/vm.h>
 #include <sys/callb.h>
-#include <sys/ddi_timer.h>
+#include <sys/ddi_periodic.h>
 #include <sys/kmem.h>
 #include <sys/vmem.h>
 #include <sys/cpuvar.h>
 #include <sys/cladm.h>
 #include <sys/corectl.h>

@@ -413,11 +417,11 @@
          */
         startup();
         segkmem_gc();
         callb_init();
         cbe_init_pre(); /* x86 must initialize gethrtimef before timer_init */
-        timer_init();   /* timer must be initialized before cyclic starts */
+        ddi_periodic_init();
         cbe_init();
         callout_init(); /* callout table MUST be init'd after cyclics */
         clock_tick_init_pre();
         clock_init();