selftests/resctrl: Move run_benchmark() to a more fitting file
authorMaciej Wieczor-Retman <maciej.wieczor-retman@intel.com>
Tue, 10 Oct 2023 07:56:12 +0000 (09:56 +0200)
committerShuah Khan <skhan@linuxfoundation.org>
Fri, 13 Oct 2023 20:59:06 +0000 (14:59 -0600)
commit508934b5d15ab79fd5895cc2a6063bc9d95f6a55
tree9a7c76128bed193f796ed1e78f2db44d4553e265
parent20d96b25cc4c45823fbec5406ae5ae45da6a892e
selftests/resctrl: Move run_benchmark() to a more fitting file

resctrlfs.c contains mostly functions that interact in some way with
resctrl FS entries while functions inside resctrl_val.c deal with
measurements and benchmarking.

run_benchmark() is located in resctrlfs.c even though it's purpose
is not interacting with the resctrl FS but to execute cache checking
logic.

Move run_benchmark() to resctrl_val.c just before resctrl_val() that
makes use of run_benchmark(). Make run_benchmark() static since it's
not used between multiple files anymore.

Remove return comment from kernel-doc since the function is type void.

Signed-off-by: Maciej Wieczor-Retman <maciej.wieczor-retman@intel.com>
Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Reviewed-by: Reinette Chatre <reinette.chatre@intel.com>
Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
tools/testing/selftests/resctrl/resctrl.h
tools/testing/selftests/resctrl/resctrl_val.c
tools/testing/selftests/resctrl/resctrlfs.c