Re: [PATCH v7 09/14] x86/resctrl: Add PMT registration API for AET enumeration callbacks

From: Reinette Chatre

Date: Mon Jun 08 2026 - 19:22:00 EST


Hi Tony,

On 6/1/26 12:56 PM, Tony Luck wrote:
> @@ -289,6 +293,10 @@ static enum pmt_feature_id lookup_pfid(const char *pfname)
> return FEATURE_INVALID;
> }
>
> +static struct module *pmt_module;
> +static struct pmt_feature_group *(*get_feature)(enum pmt_feature_id id);
> +static void (*put_feature)(struct pmt_feature_group *p);
> +
> /*
> * Request a copy of struct pmt_feature_group for each event group. If there is
> * one, the returned structure has an array of telemetry_region structures,
> @@ -323,6 +331,28 @@ bool intel_aet_get_events(void)
> return ret;
> }
>
> +static DEFINE_MUTEX(aet_register_lock);

Could you please add documentation describing what this mutex protects?

Reinette