cpuio engine cpuload bug fix
authorYufei Ren <renyufei83@gmail.com>
Sat, 20 Oct 2012 03:11:49 +0000 (23:11 -0400)
committerJens Axboe <axboe@kernel.dk>
Mon, 22 Oct 2012 08:02:26 +0000 (10:02 +0200)
commit2557f7e66176884783053fc44bda91a6781a3725
tree47f31414d5599fe7068bc53b615148984659fa9a
parentd793f802dd9dd33151649504922422077e3e1f26
cpuio engine cpuload bug fix

Current cpu ioengine always bruns out 100 percent cpu cycles
no matter what the cpuload value is. Since no data is transferred
with cpuio, bytes_done would be ZERO. Consequently, think_time
is omitted and loops keeps running.

A cpuio example is added as well.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
engines/cpu.c
examples/cpuio [new file with mode: 0644]