spdk_top: delete core_num variable
Deletes core num variable inside refresh_cores_tab, because it is used only in one place. Change-Id: Ie10a7b53487da507cb8d0babab6d00eb2f9412ca Signed-off-by: Krzysztof Karas <krzysztof.karas@intel.com> Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/8715 Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Community-CI: Broadcom CI <spdk-ci.pdl@broadcom.com> Community-CI: Mellanox Build Bot Reviewed-by: Tomasz Zawadzki <tomasz.zawadzki@intel.com> Reviewed-by: Ben Walker <benjamin.walker@intel.com> Reviewed-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com> Reviewed-by: Konrad Sztyber <konrad.sztyber@intel.com>
This commit is contained in:
parent
e230f8e9e6
commit
775173fdd9
@ -1427,7 +1427,6 @@ refresh_cores_tab(uint8_t current_page)
|
||||
{
|
||||
struct col_desc *col_desc = g_col_desc[CORES_TAB];
|
||||
uint64_t i;
|
||||
uint32_t core_num;
|
||||
uint16_t offset, count = 0;
|
||||
uint8_t max_pages, item_index;
|
||||
static uint8_t last_page = 0;
|
||||
@ -1451,9 +1450,8 @@ refresh_cores_tab(uint8_t current_page)
|
||||
}
|
||||
|
||||
for (i = 0; i < g_threads_stats.threads.threads_count; i++) {
|
||||
core_num = g_threads_stats.threads.thread_info[i].core_num;
|
||||
for (int j = 0; j < count; j++) {
|
||||
if (cores[j].core == core_num) {
|
||||
if ((int)cores[j].core == g_threads_stats.threads.thread_info[i].core_num) {
|
||||
cores[j].threads_count++;
|
||||
cores[j].pollers_count += g_threads_stats.threads.thread_info[i].active_pollers_count +
|
||||
g_threads_stats.threads.thread_info[i].timed_pollers_count +
|
||||
|
Loading…
Reference in New Issue
Block a user