perf: remove unused g_tsc_us_rate.
Not only in accel_perf, but also in test event_perf. Remove them. Fixes #1895 Signed-off-by: yidong0635 <dongx.yi@intel.com> Change-Id: I2af1d9f6f077f3ae775af994567804633fc8f050 Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/7370 Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: Jim Harris <james.r.harris@intel.com> Reviewed-by: Changpeng Liu <changpeng.liu@intel.com> Reviewed-by: Aleksey Marchuk <alexeymar@mellanox.com>
This commit is contained in:
parent
3bc0002511
commit
278bcad4ca
@ -45,7 +45,6 @@
|
||||
#define ALIGN_4K 0x1000
|
||||
|
||||
static uint64_t g_tsc_rate;
|
||||
static uint64_t g_tsc_us_rate;
|
||||
static uint64_t g_tsc_end;
|
||||
static int g_rc;
|
||||
static int g_xfer_size_bytes = 4096;
|
||||
@ -933,7 +932,6 @@ accel_perf_start(void *arg1)
|
||||
}
|
||||
|
||||
g_tsc_rate = spdk_get_ticks_hz();
|
||||
g_tsc_us_rate = g_tsc_rate / (1000 * 1000);
|
||||
g_tsc_end = spdk_get_ticks() + g_time_in_sec * g_tsc_rate;
|
||||
|
||||
printf("Running for %d seconds...\n", g_time_in_sec);
|
||||
|
@ -40,7 +40,6 @@
|
||||
#include "spdk/string.h"
|
||||
|
||||
static uint64_t g_tsc_rate;
|
||||
static uint64_t g_tsc_us_rate;
|
||||
static uint64_t g_tsc_end;
|
||||
|
||||
static int g_time_in_sec;
|
||||
@ -97,7 +96,6 @@ event_perf_start(void *arg1)
|
||||
}
|
||||
|
||||
g_tsc_rate = spdk_get_ticks_hz();
|
||||
g_tsc_us_rate = g_tsc_rate / (1000 * 1000);
|
||||
g_tsc_end = spdk_get_ticks() + g_time_in_sec * g_tsc_rate;
|
||||
|
||||
printf("Running I/O for %d seconds...", g_time_in_sec);
|
||||
|
Loading…
Reference in New Issue
Block a user