-
由 James Morse 提交于
Because domains are exposed to user-space via resctrl, the filesystem must update its state when CPU hotplug callbacks are triggered. Some of this work is common to any architecture that would support resctrl, but the work is tied up with the architecture code to free the memory. Move the monitor subdir removal and the cancelling of the mbm/limbo works into a new resctrl_offline_domain() call. These bits are not specific to the architecture. Grouping them in one function allows that code to be moved to /fs/ and re-used by another architecture. Signed-off-by: NJames Morse <james.morse@arm.com> Signed-off-by: NBorislav Petkov <bp@suse.de> Reviewed-by: NJamie Iles <quic_jiles@quicinc.com> Reviewed-by: NShaopeng Tan <tan.shaopeng@fujitsu.com> Reviewed-by: NReinette Chatre <reinette.chatre@intel.com> Tested-by: NXin Hao <xhao@linux.alibaba.com> Tested-by: NShaopeng Tan <tan.shaopeng@fujitsu.com> Tested-by: NCristian Marussi <cristian.marussi@arm.com> Link: https://lore.kernel.org/r/20220902154829.30399-6-james.morse@arm.com
798fd4b9