Re: [PATCH v1 11/31] x86/resctrl: Move monitor exit work to a restrl exit call

From: Reinette Chatre
Date: Mon Apr 08 2024 - 23:19:12 EST


Hi James,

On 3/21/2024 9:50 AM, James Morse wrote:
> rdt_put_mon_l3_config() is called via the architecture's
> resctrl_arch_exit() call, and appears to free the rmid_ptrs[]
> and closid_num_dirty_rmid[] arrays. In reality this code is marked
> __exit, and is removed by the linker as resctl can't be built

resctl -> resctrl

> as a module.
>
> MPAM can make use of this code from its error interrupt handler,
> a later patch drops all the __init/__exit annotations.

Reminder:
https://lore.kernel.org/lkml/85f8756a-23a0-444e-b37d-a7817b600f46@xxxxxxxxx/

Reinette