Fix x86 32-bit wrong variable type for rdtsc
authorJens Axboe <axboe@kernel.dk>
Thu, 21 Feb 2013 11:39:42 +0000 (12:39 +0100)
committerJens Axboe <axboe@kernel.dk>
Thu, 21 Feb 2013 11:39:42 +0000 (12:39 +0100)
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 <axboe@kernel.dk>
arch/arch-x86.h

index 679ec2816992a3c7fa82a00b520cd24a82a936ca..8eea5381f41a75443a4cd200286b4690d62ffd79 100644 (file)
@@ -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;