Add support for specific clock sources
[fio.git] / arch / arch-x86.h
index 9631437e857879b27b110eba4885fc53a363a43b..bffd1dd8b132ce68b6af4fc744a53669157a9332 100644 (file)
@@ -38,7 +38,17 @@ static inline unsigned long arch_ffz(unsigned long bitmask)
        __asm__("bsfl %1,%0" :"=r" (bitmask) :"r" (~bitmask));
        return bitmask;
 }
+
+static inline unsigned long long get_cpu_clock(void)
+{
+       unsigned long ret;
+
+       __asm__ __volatile__("rdtsc" : "=A" (ret));
+       return ret;
+}
+
 #define ARCH_HAVE_FFZ
 #define ARCH_HAVE_SSE
+#define ARCH_HAVE_CPU_CLOCK
 
 #endif