summaryrefslogtreecommitdiffstats
path: root/include/asm-i386/timex.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/asm-i386/timex.h')
-rw-r--r--include/asm-i386/timex.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/include/asm-i386/timex.h b/include/asm-i386/timex.h
index f6cf7303d..1cb3b96b4 100644
--- a/include/asm-i386/timex.h
+++ b/include/asm-i386/timex.h
@@ -29,7 +29,7 @@
* four billion cycles just basically sounds like a good idea,
* regardless of how fast the machine is.
*/
-typedef unsigned long cycles_t;
+typedef unsigned long long cycles_t;
extern cycles_t cacheflush_time;
@@ -38,10 +38,10 @@ static inline cycles_t get_cycles (void)
#ifndef CONFIG_X86_TSC
return 0;
#else
- unsigned long eax, edx;
+ unsigned long long ret;
- rdtsc(eax,edx);
- return eax;
+ rdtscll(ret);
+ return ret;
#endif
}