thread: Remove unknown_tsc tracking

This was actually always 0.

Change-Id: I33a14a9f213e8c7159f00f57c88f12cfdf1d3d60
Signed-off-by: Ben Walker <benjamin.walker@intel.com>
Reviewed-on: https://review.gerrithub.io/c/spdk/spdk/+/455318
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: Changpeng Liu <changpeng.liu@intel.com>
Reviewed-by: Darek Stojaczyk <dariusz.stojaczyk@intel.com>
This commit is contained in:
Ben Walker 2019-05-21 14:27:02 -07:00 committed by Darek Stojaczyk
parent 3a0627f069
commit f658a867f9
2 changed files with 0 additions and 4 deletions

View File

@ -328,7 +328,6 @@ const char *spdk_thread_get_name(const struct spdk_thread *thread);
struct spdk_thread_stats {
uint64_t busy_tsc;
uint64_t idle_tsc;
uint64_t unknown_tsc;
};
/**

View File

@ -532,9 +532,6 @@ spdk_thread_poll(struct spdk_thread *thread, uint32_t max_msgs, uint64_t now)
} else if (rc > 0) {
/* Poller status busy */
thread->stats.busy_tsc += now - thread->tsc_last;
} else {
/* Poller status unknown */
thread->stats.unknown_tsc += now - thread->tsc_last;
}
thread->tsc_last = now;