--- src/sys/i386/i386/Attic/machdep.c 2004/08/12 19:59:30 1.65 +++ src/sys/i386/i386/Attic/machdep.c 2004/09/17 00:18:07 1.66 @@ -66,7 +66,6 @@ #include #include #include -#include #include #include #include @@ -253,7 +252,6 @@ static void cpu_startup(dummy) void *dummy; { - unsigned i; caddr_t v; vm_offset_t minaddr; vm_offset_t maxaddr; @@ -291,15 +289,6 @@ cpu_startup(dummy) } /* - * Calculate callout wheel size - */ - for (callwheelsize = 1, callwheelbits = 0; - callwheelsize < ncallout; - callwheelsize <<= 1, ++callwheelbits) - ; - callwheelmask = callwheelsize - 1; - - /* * Allocate space for system data structures. * The first available kernel virtual address is in "v". * As pages of kernel virtual memory are allocated, "v" is incremented. @@ -323,9 +312,6 @@ again: #define valloclim(name, type, num, lim) \ (name) = (type *)v; v = (caddr_t)((lim) = ((name)+(num))) - valloc(callout, struct callout, ncallout); - valloc(callwheel, struct callout_tailq, callwheelsize); - /* * The nominal buffer size (and minimum KVA allocation) is BKVASIZE. * For the first 64MB of ram nominally allocate sufficient buffers to @@ -401,20 +387,6 @@ again: exec_map = kmem_suballoc(kernel_map, &minaddr, &maxaddr, (16*(ARG_MAX+(PAGE_SIZE*3)))); - /* - * Initialize callouts - */ - SLIST_INIT(&callfree); - for (i = 0; i < ncallout; i++) { - callout_init(&callout[i]); - callout[i].c_flags = CALLOUT_LOCAL_ALLOC; - SLIST_INSERT_HEAD(&callfree, &callout[i], c_links.sle); - } - - for (i = 0; i < callwheelsize; i++) { - TAILQ_INIT(&callwheel[i]); - } - #if defined(USERCONFIG) userconfig(); cninit(); /* the preferred console may have changed */