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

*** 20,29 **** --- 20,32 ---- */ /* * Copyright 2009 Sun Microsystems, Inc. All rights reserved. * Use is subject to license terms. */ + /* + * Copyright (c) 2013, Joyent, Inc. All rights reserved. + */ #include <sys/sysmacros.h> #include <sys/stack.h> #include <sys/cpuvar.h> #include <sys/ivintr.h>
*** 117,127 **** /* * Register these software interrupts for ddi timer. * Software interrupts up to the level 10 are supported. */ for (i = DDI_IPL_1; i <= DDI_IPL_10; i++) { ! siron_inum[i-1] = add_softintr(i, (softintrfunc)timer_softintr, (caddr_t)(uintptr_t)(i), SOFTINT_ST); } siron1_inum = add_softintr(PIL_1, softlevel1, 0, SOFTINT_ST); poke_cpu_inum = add_softintr(PIL_13, poke_cpu_intr, 0, SOFTINT_MT); --- 120,131 ---- /* * Register these software interrupts for ddi timer. * Software interrupts up to the level 10 are supported. */ for (i = DDI_IPL_1; i <= DDI_IPL_10; i++) { ! siron_inum[i - 1] = add_softintr(i, ! (softintrfunc)ddi_periodic_softintr, (caddr_t)(uintptr_t)(i), SOFTINT_ST); } siron1_inum = add_softintr(PIL_1, softlevel1, 0, SOFTINT_ST); poke_cpu_inum = add_softintr(PIL_13, poke_cpu_intr, 0, SOFTINT_MT);