spdk_top: rename free_resources to free_poller_history

Rename this function to better expalin what it does.

Signed-off-by: Krzysztof Karas <krzysztof.karas@intel.com>
Change-Id: I7ab84a7cfbe488df8c1681d943f8af74458f5b32
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/7389
Community-CI: Mellanox Build Bot
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: Maciej Szwed <maciej.szwed@intel.com>
Reviewed-by: Jim Harris <james.r.harris@intel.com>
Reviewed-by: Konrad Sztyber <konrad.sztyber@intel.com>
Reviewed-by: Tomasz Zawadzki <tomasz.zawadzki@intel.com>
This commit is contained in:
Krzysztof Karas 2021-04-14 16:08:50 +02:00 committed by Jim Harris
parent b096b67010
commit bd4363d3e0

View File

@ -1999,7 +1999,7 @@ change_refresh_rate(void)
} }
static void static void
free_resources(void) free_poller_history(void)
{ {
struct run_counter_history *history, *tmp; struct run_counter_history *history, *tmp;
@ -2570,7 +2570,7 @@ show_stats(pthread_t *data_thread)
pthread_join(*data_thread, NULL); pthread_join(*data_thread, NULL);
free_resources(); free_poller_history();
/* Free memory holding current data states before quitting application */ /* Free memory holding current data states before quitting application */
free_rpc_threads_stats(&g_threads_stats); free_rpc_threads_stats(&g_threads_stats);