diff options
author | 2024-12-06 08:31:41 -0800 | |
---|---|---|
committer | 2024-12-09 21:37:01 +0100 | |
commit | 2937f9c361f7a8b230cd599e4af5264798bf4ce7 (patch) | |
tree | 3c4cc7c238d78e516a8b93de399dfbcd521a9724 /tools/perf/scripts/python/call-graph-from-postgresql.py | |
parent | x86/resctrl: Use kthread_run_on_cpu() (diff) | |
download | wireguard-linux-2937f9c361f7a8b230cd599e4af5264798bf4ce7.tar.xz wireguard-linux-2937f9c361f7a8b230cd599e4af5264798bf4ce7.zip |
x86/resctrl: Introduce resctrl_file_fflags_init() to initialize fflags
thread_throttle_mode_init() and mbm_config_rftype_init() both initialize
fflags for resctrl files.
Adding new files will involve adding another function to initialize
the fflags. This can be simplified by adding a new function
resctrl_file_fflags_init() and passing the file name and flags
to be initialized.
Consolidate fflags initialization into resctrl_file_fflags_init() and
remove thread_throttle_mode_init() and mbm_config_rftype_init().
[ Tony: Drop __init attribute so resctrl_file_fflags_init() can be used at
run time. ]
Signed-off-by: Babu Moger <babu.moger@amd.com>
Signed-off-by: Tony Luck <tony.luck@intel.com>
Signed-off-by: Borislav Petkov (AMD) <bp@alien8.de>
Reviewed-by: Reinette Chatre <reinette.chatre@intel.com>
Link: https://lore.kernel.org/r/20241206163148.83828-2-tony.luck@intel.com
Diffstat (limited to 'tools/perf/scripts/python/call-graph-from-postgresql.py')
0 files changed, 0 insertions, 0 deletions