static void *gtod_thread_main(void *data)
{
struct fio_mutex *mutex = data;
+ int ret;
+
+ ret = fio_setaffinity(gettid(), fio_gtod_cpumask);
- fio_setaffinity(gettid(), fio_gtod_cpumask);
fio_mutex_up(mutex);
+ if (ret == -1) {
+ log_err("gtod: setaffinity failed\n");
+ return NULL;
+ }
+
/*
* As long as we have jobs around, update the clock. It would be nice
* to have some way of NOT hammering that CPU with gettimeofday(),