]> Gentwo Git Trees - linux/.git/commit
x86,fs/resctrl: Replace architecture event enabled checks
authorTony Luck <tony.luck@intel.com>
Fri, 5 Sep 2025 21:34:01 +0000 (16:34 -0500)
committerBorislav Petkov (AMD) <bp@alien8.de>
Mon, 15 Sep 2025 09:54:14 +0000 (11:54 +0200)
commitd257cc2e5c8bb8236cb161360d6c0529fd442712
tree50c9a1e4d0ec7b2ad8ab52be537a949bfce43c79
parent09f37134464cc03baf5cb8eab2d99db27ee73217
x86,fs/resctrl: Replace architecture event enabled checks

The resctrl file system now has complete knowledge of the status of every
event. So there is no need for per-event function calls to check.

Replace each of the resctrl_arch_is_{event}enabled() calls with
resctrl_is_mon_event_enabled(QOS_{EVENT}).

No functional change.

Signed-off-by: Tony Luck <tony.luck@intel.com>
Signed-off-by: Babu Moger <babu.moger@amd.com>
Signed-off-by: Borislav Petkov (AMD) <bp@alien8.de>
Reviewed-by: Fenghua Yu <fenghuay@nvidia.com>
Reviewed-by: Reinette Chatre <reinette.chatre@intel.com>
Link: https://lore.kernel.org/cover.1757108044.git.babu.moger@amd.com
arch/x86/include/asm/resctrl.h
arch/x86/kernel/cpu/resctrl/core.c
arch/x86/kernel/cpu/resctrl/monitor.c
fs/resctrl/ctrlmondata.c
fs/resctrl/monitor.c
fs/resctrl/rdtgroup.c
include/linux/resctrl.h