X-Git-Url: https://git.kernel.dk/?a=blobdiff_plain;f=engines%2Fcpu.c;h=09872508e12129d1408040eadb40055c0ebb8181;hb=fd98fb689d5ad7e9977461e961fff3fdd37f9cb8;hp=3d855e363c3212ba3d0c656ac5e2e92de1da1c05;hpb=2403767a46a027bc7fdbb6ff27fc0da109ee1179;p=fio.git diff --git a/engines/cpu.c b/engines/cpu.c index 3d855e36..09872508 100644 --- a/engines/cpu.c +++ b/engines/cpu.c @@ -22,7 +22,7 @@ static struct fio_option options[] = { .type = FIO_OPT_INT, .off1 = offsetof(struct cpu_options, cpuload), .help = "Use this percentage of CPU", - .category = FIO_OPT_C_GENERAL, + .category = FIO_OPT_C_ENGINE, .group = FIO_OPT_G_INVALID, }, { @@ -34,7 +34,7 @@ static struct fio_option options[] = { .def = "50000", .parent = "cpuload", .hide = 1, - .category = FIO_OPT_C_GENERAL, + .category = FIO_OPT_C_ENGINE, .group = FIO_OPT_G_INVALID, }, { @@ -44,7 +44,7 @@ static struct fio_option options[] = { .off1 = offsetof(struct cpu_options, exit_io_done), .help = "Exit when IO threads finish", .def = "0", - .category = FIO_OPT_C_GENERAL, + .category = FIO_OPT_C_ENGINE, .group = FIO_OPT_G_INVALID, }, { @@ -53,7 +53,8 @@ static struct fio_option options[] = { }; -static int fio_cpuio_queue(struct thread_data *td, struct io_u fio_unused *io_u) +static enum fio_q_status fio_cpuio_queue(struct thread_data *td, + struct io_u fio_unused *io_u) { struct cpu_options *co = td->eo;