aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c
diff options
context:
space:
mode:
authorBabu Moger <[email protected]>2024-12-06 16:31:41 +0000
committerBorislav Petkov (AMD) <[email protected]>2024-12-09 20:37:01 +0000
commit2937f9c361f7a8b230cd599e4af5264798bf4ce7 (patch)
tree3c4cc7c238d78e516a8b93de399dfbcd521a9724 /drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c
parentx86/resctrl: Use kthread_run_on_cpu() (diff)
downloadkernel-2937f9c361f7a8b230cd599e4af5264798bf4ce7.tar.gz
kernel-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 <[email protected]> Signed-off-by: Tony Luck <[email protected]> Signed-off-by: Borislav Petkov (AMD) <[email protected]> Reviewed-by: Reinette Chatre <[email protected]> Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c')
0 files changed, 0 insertions, 0 deletions