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

*** 24,33 **** --- 24,37 ---- */ /* 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,423 **** */ startup(); segkmem_gc(); callb_init(); cbe_init_pre(); /* x86 must initialize gethrtimef before timer_init */ ! timer_init(); /* timer must be initialized before cyclic starts */ cbe_init(); callout_init(); /* callout table MUST be init'd after cyclics */ clock_tick_init_pre(); clock_init(); --- 417,427 ---- */ startup(); segkmem_gc(); callb_init(); cbe_init_pre(); /* x86 must initialize gethrtimef before timer_init */ ! ddi_periodic_init(); cbe_init(); callout_init(); /* callout table MUST be init'd after cyclics */ clock_tick_init_pre(); clock_init();