[PATCH v2 15/16] x86/resctrl: Enable package event monitoring

Tony Luck posted 16 patches 10 months, 3 weeks ago
There is a newer version of this series
[PATCH v2 15/16] x86/resctrl: Enable package event monitoring
Posted by Tony Luck 10 months, 3 weeks 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.

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

diff --git a/arch/x86/kernel/cpu/resctrl/intel_aet.c b/arch/x86/kernel/cpu/resctrl/intel_aet.c
index 28692c6ec425..593e838fe5b6 100644
--- a/arch/x86/kernel/cpu/resctrl/intel_aet.c
+++ b/arch/x86/kernel/cpu/resctrl/intel_aet.c
@@ -293,6 +293,8 @@ int rdt_get_intel_aet_mon_config(void)
 
 	INIT_LIST_HEAD(&r->evt_list);
 
+	r->mon_capable = true;
+
 	return 1;
 }
 
-- 
2.48.1