Re: [PATCH v9 07/27] x86/resctrl: Add end-marker to the resctrl_event_id enum
From: Reinette Chatre
Date: Thu May 01 2025 - 13:05:40 EST
Hi James,
On 4/25/25 10:37 AM, James Morse wrote:
> The resctrl_event_id enum gives names to the counter event numbers on x86.
> These are used directly by resctrl.
>
> To allow the MPAM driver to keep an array of these the size of the enum
> needs to be known.
>
> Add a 'num_events' enum entry which can be used to size an array.
> This is added to the enum to reduce conflicts with another series,
> which in turn requires get_arch_mbm_state() to have a default case.
>
> Signed-off-by: James Morse <james.morse@xxxxxxx>
> ---
Reviewed-by: Reinette Chatre <reinette.chatre@xxxxxxxxx>
Reinette