We should not factor the utime_since() runtime into this, so
do the get_cpu_clock() before. In reality this probably won't
make any difference, as we're doing this tight loop for more
than a milisecond.
Signed-off-by: Jens Axboe <axboe@kernel.dk>
c_s = get_cpu_clock();
do {
__fio_gettime(&e);
c_s = get_cpu_clock();
do {
__fio_gettime(&e);
elapsed = utime_since(&s, &e);
elapsed = utime_since(&s, &e);
- if (elapsed >= 1280) {
- c_e = get_cpu_clock();
} while (1);
fio_clock_source = old_cs;
} while (1);
fio_clock_source = old_cs;