[PATCH v3 30/47] arm_mpam: resctrl: Pre-allocate free running monitors

Jonathan Cameron jonathan.cameron at huawei.com
Tue Jan 13 07:10:25 PST 2026


On Mon, 12 Jan 2026 16:58:57 +0000
Ben Horgan <ben.horgan at arm.com> wrote:

> From: James Morse <james.morse at arm.com>
> 
> 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 at arm.com>
> Signed-off-by: Ben Horgan <ben.horgan at arm.com>
Reviewed-by: Jonathan Cameron <jonathan.cameron at huawei.com>





More information about the linux-arm-kernel mailing list