Re: [PATCH v3 30/47] arm_mpam: resctrl: Pre-allocate free running monitors
From: Jonathan Cameron
Date: Tue Jan 13 2026 - 10:10:30 EST
On Mon, 12 Jan 2026 16:58:57 +0000
Ben Horgan <ben.horgan@xxxxxxx> wrote:
> From: James Morse <james.morse@xxxxxxx>
>
> When there are enough monitors, the resctrl mbm local and total files can
> be exposed. These need all the monitors that resctrl may use to be
> allocated up front.
>
> Add helpers to do this.
>
> If a different candidate class is discovered, the old array should be
> free'd and the allocated monitors returned to the driver.
>
> Signed-off-by: James Morse <james.morse@xxxxxxx>
> Signed-off-by: Ben Horgan <ben.horgan@xxxxxxx>
Reviewed-by: Jonathan Cameron <jonathan.cameron@xxxxxxxxxx>