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

@@ -116,11 +116,11 @@
 #include <sys/cpc_impl.h>
 #include <sys/cpu_module.h>
 #include <sys/smbios.h>
 #include <sys/debug_info.h>
 #include <sys/bootinfo.h>
-#include <sys/ddi_timer.h>
+#include <sys/ddi_periodic.h>
 #include <sys/systeminfo.h>
 #include <sys/multiboot.h>
 
 #ifdef  __xpv
 

@@ -2247,15 +2247,10 @@
         /*
          * Register software interrupt handlers for ddi_periodic_add(9F).
          * Software interrupts up to the level 10 are supported.
          */
         for (i = DDI_IPL_1; i <= DDI_IPL_10; i++) {
-                /*
-                 * The constant string "ddi_periodic", below, is only used to
-                 * print debugging information.  Generating a dynamic string
-                 * for each soft level is a waste of kernel memory.
-                 */
                 (void) add_avsoftintr((void *)&softlevel_hdl[i-1], i,
                     (avfunc)ddi_periodic_softintr, "ddi_periodic",
                     (caddr_t)(uintptr_t)i, NULL);
         }