init tbr_callout in all cases (hi ad!)
This commit is contained in:
parent
7f9dc6bf93
commit
96356ccdfd
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: altq_subr.c,v 1.22 2007/07/09 21:10:45 ad Exp $ */
|
||||
/* $NetBSD: altq_subr.c,v 1.23 2007/09/04 14:17:16 pooka Exp $ */
|
||||
/* $KAME: altq_subr.c,v 1.24 2005/04/13 03:44:25 suz Exp $ */
|
||||
|
||||
/*
|
||||
@ -28,7 +28,7 @@
|
||||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: altq_subr.c,v 1.22 2007/07/09 21:10:45 ad Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: altq_subr.c,v 1.23 2007/09/04 14:17:16 pooka Exp $");
|
||||
|
||||
#ifdef _KERNEL_OPT
|
||||
#include "opt_altq.h"
|
||||
@ -783,6 +783,9 @@ extern u_int64_t cycles_per_usec; /* alpha cpu clock frequency */
|
||||
void
|
||||
init_machclk(void)
|
||||
{
|
||||
|
||||
callout_init(&tbr_callout, 0);
|
||||
|
||||
machclk_usepcc = 1;
|
||||
|
||||
#if (!defined(__i386__) && !defined(__alpha__)) || defined(ALTQ_NOPCC)
|
||||
@ -857,8 +860,6 @@ init_machclk(void)
|
||||
|
||||
machclk_per_tick = machclk_freq / hz;
|
||||
|
||||
callout_init(&tbr_callout, 0);
|
||||
|
||||
#ifdef ALTQ_DEBUG
|
||||
printf("altq: CPU clock: %uHz\n", machclk_freq);
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user