configure: add SCHED_IDLE check
We can't consider it always available on Linux. It fails on
Debian 6.x, for instance.
Signed-off-by: Jens Axboe <axboe@kernel.dk>
diff --git a/idletime.c b/idletime.c
index 6100134..fb6f9dd 100644
--- a/idletime.c
+++ b/idletime.c
@@ -74,7 +74,7 @@
ipt->cali_time = calibrate_unit(ipt->data);
/* delay to set IDLE class till now for better calibration accuracy */
-#if defined(FIO_HAVE_SCHED_IDLE)
+#if defined(CONFIG_SCHED_IDLE)
if ((retval = fio_set_sched_idle()))
log_err("fio: fio_set_sched_idle failed\n");
#else
@@ -385,7 +385,7 @@
return -1;
}
-#if defined(FIO_HAVE_CPU_AFFINITY) && defined(FIO_HAVE_SCHED_IDLE)
+#if defined(FIO_HAVE_CPU_AFFINITY) && defined(CONFIG_SCHED_IDLE)
if (strcmp("calibrate", args) == 0) {
ipc.opt = IDLE_PROF_OPT_CALI;
fio_idle_prof_init();