Add fio_cpuset_exit() empty handler for platforms that don't support affinity
authorJens Axboe <jens.axboe@oracle.com>
Mon, 5 Jan 2009 08:40:13 +0000 (09:40 +0100)
committerJens Axboe <jens.axboe@oracle.com>
Mon, 5 Jan 2009 08:40:13 +0000 (09:40 +0100)
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
os/os.h

diff --git a/os/os.h b/os/os.h
index 823b039a01ab30e61efaf7742588fb179ea3b8b0..5a3bc559186a2c076635a91c6cf85c72a9b80211 100644 (file)
--- a/os/os.h
+++ b/os/os.h
@@ -42,6 +42,7 @@
 #define fio_setaffinity(td)            (0)
 #define fio_getaffinity(pid, mask)     do { } while (0)
 #define fio_cpu_clear(mask, cpu)       do { } while (0)
 #define fio_setaffinity(td)            (0)
 #define fio_getaffinity(pid, mask)     do { } while (0)
 #define fio_cpu_clear(mask, cpu)       do { } while (0)
+#define fio_cpuset_exit(mask)          (-1)
 #endif
 
 #ifndef FIO_HAVE_IOPRIO
 #endif
 
 #ifndef FIO_HAVE_IOPRIO