AMD64 - Enable TSC functions.
authorMatthew Dillon <dillon@apollo.backplane.com>
Thu, 13 Aug 2009 16:39:53 +0000 (09:39 -0700)
committerMatthew Dillon <dillon@apollo.backplane.com>
Thu, 13 Aug 2009 16:39:53 +0000 (09:39 -0700)
sys/cpu/amd64/include/cpufunc.h
sys/kern/kern_clock.c

index 6dec9c2..2b92073 100644 (file)
@@ -497,6 +497,8 @@ rdpmc(u_int pmc)
        return (low | ((u_int64_t)high << 32));
 }
 
+#define _RDTSC_SUPPORTED_
+
 static __inline u_int64_t
 rdtsc(void)
 {
index 4eea25e..8c05ebd 100644 (file)
@@ -1328,6 +1328,6 @@ tsc_test_target(int64_t target)
                        return(1);
                return(0);
        }
-       return(-1);
 #endif
+       return(-1);
 }