x86/resctrl: Replace smp_call_function_many() with on_each_cpu_mask()
authorBabu Moger <babu.moger@amd.com>
Fri, 13 Jan 2023 15:20:27 +0000 (09:20 -0600)
committerBorislav Petkov (AMD) <bp@alien8.de>
Mon, 23 Jan 2023 16:38:04 +0000 (17:38 +0100)
commitfc3b618c87833e4d258b66acfca3557c49c4fe97
tree1187bce86c778ad91f270e7b850f718a01ce38ff
parent2241ab53cbb5cdb08a6b2d4688feb13971058f65
x86/resctrl: Replace smp_call_function_many() with on_each_cpu_mask()

on_each_cpu_mask() runs the function on each CPU specified by cpumask,
which may include the local processor.

Replace smp_call_function_many() with on_each_cpu_mask() to simplify
the code.

Signed-off-by: Babu Moger <babu.moger@amd.com>
Signed-off-by: Borislav Petkov (AMD) <bp@alien8.de>
Reviewed-by: Reinette Chatre <reinette.chatre@intel.com>
Link: https://lore.kernel.org/r/20230113152039.770054-2-babu.moger@amd.com
arch/x86/kernel/cpu/resctrl/ctrlmondata.c
arch/x86/kernel/cpu/resctrl/rdtgroup.c