summaryrefslogtreecommitdiff
path: root/sys/altq/altq_subr.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/altq/altq_subr.c')
-rw-r--r--sys/altq/altq_subr.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/sys/altq/altq_subr.c b/sys/altq/altq_subr.c
index 8e339d6f762..89fc5071989 100644
--- a/sys/altq/altq_subr.c
+++ b/sys/altq/altq_subr.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: altq_subr.c,v 1.18 2004/06/24 19:35:22 tholo Exp $ */
+/* $OpenBSD: altq_subr.c,v 1.19 2004/07/28 17:15:12 tholo Exp $ */
/* $KAME: altq_subr.c,v 1.11 2002/01/11 08:11:49 kjc Exp $ */
/*
@@ -746,6 +746,14 @@ init_machclk(void)
#if defined(__NetBSD__) && defined(MULTIPROCESSOR)
machclk_usepcc = 0;
#endif
+#if defined(__OpenBSD__) && defined(__HAVE_TIMECOUNTER)
+ /*
+ * If we have timecounters, microtime is good enough and we can
+ * avoid problems on machines with variable cycle counter
+ * frequencies.
+ */
+ machclk_usepcc = 0;
+#endif
#ifdef __i386__
/* check if TSC is available */
if (machclk_usepcc == 1 && (cpu_feature & CPUID_TSC) == 0)