helper_thread: refactor status-interval and steadystate code
authorVincent Fu <vincent.fu@wdc.com>
Wed, 29 Apr 2020 11:19:54 +0000 (05:19 -0600)
committerVincent Fu <vincent.fu@wdc.com>
Wed, 29 Apr 2020 11:25:26 +0000 (05:25 -0600)
commit3da71e37115134823528fc03d946b05a785f088f
treebb936c045ed5f1139074a2d2c63c1fcd9ba14aaa
parent0f77d30d90b809fbf233b9474cc5d17c6bf73541
helper_thread: refactor status-interval and steadystate code

The code patterns for the status-interval and steadystate tasks are the same.
So refactor the common code into a separate function. The disk util code is not
the same because the task has a return code.

Signed-off-by: Vincent Fu <vincent.fu@wdc.com>
helper_thread.c