idletime: maintain cpuset over lifetime of idle thread
[fio.git] / idletime.h
index acb8407d982a1242b47549c7e406a3f294713973..bd6dcef022659979919d4c7778e0dfebb9cae6cc 100644 (file)
@@ -27,13 +27,15 @@ struct idle_prof_thread {
        int state;
        struct timeval tps;
        struct timeval tpe;
-       double cali_time; /* microseconds to finish a unit wrok */
+       double cali_time; /* microseconds to finish a unit work */
        double loops;
        double idleness;
        unsigned char *data;             /* bytes to be touched */
        pthread_cond_t  cond;
        pthread_mutex_t init_lock;
        pthread_mutex_t start_lock;
+
+       os_cpu_mask_t cpu_mask;
 };
 
 struct idle_prof_common {