diff options
author | Jens Axboe <jens.axboe@oracle.com> | 2008-05-30 23:18:00 +0200 |
---|---|---|
committer | Jens Axboe <jens.axboe@oracle.com> | 2008-05-30 23:18:00 +0200 |
commit | ccb0fa24f0ff37f9270754ea5a1b66de9fd7053e (patch) | |
tree | 1c10f29e2826af4a388630061cb21f01b4354449 /diskutil.c | |
parent | 739097e6e145afb98057846c419c60c2cc2dd9c0 (diff) | |
download | fio-ccb0fa24f0ff37f9270754ea5a1b66de9fd7053e.tar.gz |
Seperate status timer setup from disk util timer
It's still the same timer and shared, but move it out of
diskutil so we get proper status reporting on non-Linux.
We also need to rearm the signal handlers on each signal.
Move this to sigaction() next.
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
Diffstat (limited to 'diskutil.c')
-rw-r--r-- | diskutil.c | 8 |
1 files changed, 0 insertions, 8 deletions
@@ -10,7 +10,6 @@ #include "fio.h" static int last_majdev, last_mindev; -static struct itimerval itimer; static struct list_head disk_list = LIST_HEAD_INIT(disk_list); @@ -317,13 +316,6 @@ void init_disk_util(struct thread_data *td) __init_disk_util(td, f); } -void disk_util_timer_arm(void) -{ - itimer.it_value.tv_sec = 0; - itimer.it_value.tv_usec = DISK_UTIL_MSEC * 1000; - setitimer(ITIMER_REAL, &itimer, NULL); -} - void show_disk_util(void) { struct disk_util_stat *dus; |