From: Jens Axboe Date: Thu, 21 Feb 2013 11:39:42 +0000 (+0100) Subject: Fix x86 32-bit wrong variable type for rdtsc X-Git-Tag: fio-2.0.14~5 X-Git-Url: https://git.kernel.dk/?p=fio.git;a=commitdiff_plain;h=6eb9d1b9aea77a33410eb833f2ceb4180adbfa15 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 --- 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;