]> www.infradead.org Git - users/jedix/linux-maple.git/commit
x86/resctrl: Modify update_mba_bw() to use per CTRL_MON group event
authorTony Luck <tony.luck@intel.com>
Fri, 6 Dec 2024 16:31:43 +0000 (08:31 -0800)
committerBorislav Petkov (AMD) <bp@alien8.de>
Tue, 10 Dec 2024 10:15:19 +0000 (11:15 +0100)
commit481d363748b2df881df21569f3697b3c7fcf8fc1
treebf13704f408b47e82845e7cf2941c62eab4c4d56
parent3b49c37a2f4657730dd38a050b9d221363889dea
x86/resctrl: Modify update_mba_bw() to use per CTRL_MON group event

update_mba_bw() hard codes use of the memory bandwidth local event which
prevents more flexible options from being deployed.

Change this function to use the event specified in the rdtgroup that is
being processed.

Mount time checks for the "mba_MBps" option ensure that local memory
bandwidth is enabled. So drop the redundant is_mbm_local_enabled() check.

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>
Tested-by: Babu Moger <babu.moger@amd.com>
Link: https://lore.kernel.org/r/20241206163148.83828-4-tony.luck@intel.com
arch/x86/kernel/cpu/resctrl/monitor.c