Commit f658a867 authored by Ben Walker's avatar Ben Walker Committed by Darek Stojaczyk
Browse files

thread: Remove unknown_tsc tracking



This was actually always 0.

Change-Id: I33a14a9f213e8c7159f00f57c88f12cfdf1d3d60
Signed-off-by: default avatarBen Walker <benjamin.walker@intel.com>
Reviewed-on: https://review.gerrithub.io/c/spdk/spdk/+/455318


Tested-by: default avatarSPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: default avatarChangpeng Liu <changpeng.liu@intel.com>
Reviewed-by: default avatarDarek Stojaczyk <dariusz.stojaczyk@intel.com>
parent 3a0627f0
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -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;
};

/**
+0 −3
Original line number Diff line number Diff line
@@ -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;