projects
/
fio.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
486332e
)
gettime: calibration rounding error
author
Jens Axboe
<axboe@kernel.dk>
Mon, 10 Dec 2012 07:29:03 +0000
(08:29 +0100)
committer
Jens Axboe
<axboe@kernel.dk>
Mon, 10 Dec 2012 07:29:03 +0000
(08:29 +0100)
Signed-off-by: Jens Axboe <axboe@kernel.dk>
gettime.c
patch
|
blob
|
blame
|
history
diff --git
a/gettime.c
b/gettime.c
index 549c35e9c0dc34826a69108e202f169ddffead05..a60b35f65f2b45df5c129a326ffc2c909afa2bdf 100644
(file)
--- a/
gettime.c
+++ b/
gettime.c
@@
-207,7
+207,7
@@
static unsigned long get_cycles_per_usec(void)
}
} while (1);
}
} while (1);
- return (c_e - c_s) >> 7;
+ return (c_e - c_s
+ 127
) >> 7;
}
#define NR_TIME_ITERS 50
}
#define NR_TIME_ITERS 50