[RFC PATCH 16/17] x86/resctrl: Enable package event monitoring

From: Tony Luck
Date: Mon Mar 03 2025 - 18:37:19 EST


All the code to support this is in place. Unconditionally enable
the package resource during early initialization so that domain
lists are built.

Enumeration of the package events happens at first mount, if there
are no package scoped events, then this resource is disabled.

TODO: Cleanup the domains.

Signed-off-by: Tony Luck <tony.luck@xxxxxxxxx>
---
arch/x86/kernel/cpu/resctrl/intel_pmt.c | 2 ++
1 file changed, 2 insertions(+)

diff --git a/arch/x86/kernel/cpu/resctrl/intel_pmt.c b/arch/x86/kernel/cpu/resctrl/intel_pmt.c
index e89130387387..52ff5eb79b4e 100644
--- a/arch/x86/kernel/cpu/resctrl/intel_pmt.c
+++ b/arch/x86/kernel/cpu/resctrl/intel_pmt.c
@@ -244,6 +244,8 @@ int rdt_get_intel_pmt_mon_config(void)

INIT_LIST_HEAD(&r->evt_list);

+ r->mon_capable = true;
+
return 1;
}

--
2.48.1