diff options
author | Ilpo Järvinen <[email protected]> | 2023-12-15 17:05:03 +0200 |
---|---|---|
committer | Shuah Khan <[email protected]> | 2024-02-13 13:56:44 -0700 |
commit | 3cdad0a5a6cf581519748612cb449b43379510a4 (patch) | |
tree | a08701e8e3ade7ebbb8fd9e2cd2d748da364e7e7 /net/lapb/lapb_subr.c | |
parent | 038ce802e248a985150156da84bc3f118236b898 (diff) |
selftests/resctrl: Convert perf related globals to locals
Perf related variables pea_llc_miss, pe_read, and pe_fd are globals in
cache.c.
Convert them to locals for better scoping and make pea_llc_miss simpler
by renaming it to pea. Make close(pe_fd) handling easier to understand
by doing it inside cat_val().
Make also sizeof()s use safer way to determine the right struct.
Signed-off-by: Ilpo Järvinen <[email protected]>
Reviewed-by: Reinette Chatre <[email protected]>
Signed-off-by: Shuah Khan <[email protected]>
Diffstat (limited to 'net/lapb/lapb_subr.c')
0 files changed, 0 insertions, 0 deletions