summaryrefslogtreecommitdiff
blob: c3df0d1175babd6e486d73bdac4997b651cb5e11 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
--- linux-phc-0.2.9-orig/utils/measurefreq/src/measurefreq.cpp	2006-07-15 08:25:57.000000000 +0300
+++ linux-phc-0.2.9/utils/measurefreq/src/measurefreq.cpp	2007-04-07 21:56:24.000000000 +0300
@@ -25,7 +25,6 @@
 
 #include <iostream>
 #include <cstdlib>
-#include <asm/msr.h>
 #include <sys/time.h>
 #include <unistd.h>
 #include <math.h>
@@ -38,6 +37,9 @@
 #define DEFAULT_MEASURE_TIME 1000000
 #define BUSY_LOOP_COUNT 10000000
 
+// Define rdtsc() which was in asm/msr.h
+#define rdtsc(low,high) \
+     __asm__ __volatile__("rdtsc" : "=a" (low), "=d" (high))
 
 enum WaitType
 {