Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/i386/i386 If NO_TSC_TIME is defined, do not use the...



details:   https://anonhg.NetBSD.org/src/rev/726e200ec500
branches:  trunk
changeset: 555534:726e200ec500
user:      fvdl <fvdl%NetBSD.org@localhost>
date:      Thu Nov 20 13:30:29 2003 +0000

description:
If NO_TSC_TIME is defined, do not use the tsc microtime. This option can
be used to make time pass a little more smoothly when running under
VMware.

diffstat:

 sys/arch/i386/i386/identcpu.c |  6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diffs (28 lines):

diff -r 8972ce6638e3 -r 726e200ec500 sys/arch/i386/i386/identcpu.c
--- a/sys/arch/i386/i386/identcpu.c     Thu Nov 20 13:13:38 2003 +0000
+++ b/sys/arch/i386/i386/identcpu.c     Thu Nov 20 13:30:29 2003 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: identcpu.c,v 1.7 2003/10/30 02:07:37 simonb Exp $      */
+/*     $NetBSD: identcpu.c,v 1.8 2003/11/20 13:30:29 fvdl Exp $        */
 
 /*-
  * Copyright (c) 1999, 2000, 2001 The NetBSD Foundation, Inc.
@@ -37,7 +37,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: identcpu.c,v 1.7 2003/10/30 02:07:37 simonb Exp $");
+__KERNEL_RCSID(0, "$NetBSD: identcpu.c,v 1.8 2003/11/20 13:30:29 fvdl Exp $");
 
 #include "opt_cputype.h"
 
@@ -1150,7 +1150,9 @@
                last_tsc = rdtsc();
                delay(100000);
                ci->ci_tsc_freq = (rdtsc() - last_tsc) * 10;
+#ifndef NO_TSC_TIME
                microtime_func = cc_microtime;
+#endif
        }
        /* XXX end XXX */
 #endif



Home | Main Index | Thread Index | Old Index