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>

@@ -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();