define ALTQ_NOPCC if i386 and !I586_CPU and !I686_CPU.

otherwise, kernel fails to compile.
report by "Federico G. Schwindt" <fgsch@olimpo.com.br>
This commit is contained in:
itojun 2002-05-31 06:52:00 +00:00
parent 5d837662a3
commit bc95d762f8

View File

@ -1,4 +1,4 @@
/* $NetBSD: altq_var.h,v 1.2 2000/12/14 08:49:51 thorpej Exp $ */
/* $NetBSD: altq_var.h,v 1.3 2002/05/31 06:52:00 itojun Exp $ */
/* $KAME: altq_var.h,v 1.7 2000/12/14 08:12:46 thorpej Exp $ */
/*
@ -104,6 +104,12 @@ extern u_int32_t machclk_freq;
extern u_int32_t machclk_per_tick;
extern void init_machclk(void);
#if defined(__i386__) && !defined(I586_CPU) && !defined(I686_CPU)
#ifndef ALTQ_NOPCC
#define ALTQ_NOPCC /* TSC is not available, ALTQ_NOPCC needed */
#endif
#endif
#if defined(__i386__) && !defined(ALTQ_NOPCC)
/* for pentium tsc */
#include <machine/cpufunc.h>