projects
/
fio.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b6e7d85
)
Fix x86 32-bit wrong variable type for rdtsc
author
Jens Axboe
<axboe@kernel.dk>
Thu, 21 Feb 2013 11:39:42 +0000
(12:39 +0100)
committer
Jens 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
patch
|
blob
|
blame
|
history
diff --git
a/arch/arch-x86.h
b/arch/arch-x86.h
index 679ec2816992a3c7fa82a00b520cd24a82a936ca..8eea5381f41a75443a4cd200286b4690d62ffd79 100644
(file)
--- 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;