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

Tony Luck posted 17 patches 11 months, 1 week ago
There is a newer version of this series
[RFC PATCH 16/17] x86/resctrl: Enable package event monitoring
Posted by Tony Luck 11 months, 1 week ago
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@intel.com>
---
 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