From 6eb9d1b9aea77a33410eb833f2ceb4180adbfa15 Mon Sep 17 00:00:00 2001 From: Jens Axboe Date: Thu, 21 Feb 2013 12:39:42 +0100 Subject: [PATCH] Fix x86 32-bit wrong variable type for rdtsc Bruce points out, that we are putting the result into a 32-bit variable. That is incorrect, make it a proper ULL instead. Signed-off-by: Jens Axboe --- arch/arch-x86.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arch-x86.h b/arch/arch-x86.h index 679ec281..8eea5381 100644 --- a/arch/arch-x86.h +++ b/arch/arch-x86.h @@ -34,7 +34,7 @@ static inline unsigned long arch_ffz(unsigned long bitmask) static inline unsigned long long get_cpu_clock(void) { - unsigned long ret; + unsigned long long ret; __asm__ __volatile__("rdtsc" : "=A" (ret)); return ret; -- 2.25.1