diff options
author | James Morse <james.morse@arm.com> | 2022-09-02 15:48:13 +0000 |
---|---|---|
committer | Borislav Petkov <bp@suse.de> | 2022-09-22 15:42:40 +0200 |
commit | 798fd4b9ac37fec571f55fb8592497b0dd5f7a73 (patch) | |
tree | c1277d02cf6ed096a1a574bbd2c47e032708752e /arch/x86/kernel/pmem.c | |
parent | 7add3af4178d9e25afc8d990a7d1000ccb22b6a0 (diff) |
x86/resctrl: Add domain offline callback for resctrl work
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: James Morse <james.morse@arm.com>
Signed-off-by: Borislav Petkov <bp@suse.de>
Reviewed-by: Jamie Iles <quic_jiles@quicinc.com>
Reviewed-by: Shaopeng Tan <tan.shaopeng@fujitsu.com>
Reviewed-by: Reinette Chatre <reinette.chatre@intel.com>
Tested-by: Xin Hao <xhao@linux.alibaba.com>
Tested-by: Shaopeng Tan <tan.shaopeng@fujitsu.com>
Tested-by: Cristian Marussi <cristian.marussi@arm.com>
Link: https://lore.kernel.org/r/20220902154829.30399-6-james.morse@arm.com
Diffstat (limited to 'arch/x86/kernel/pmem.c')
0 files changed, 0 insertions, 0 deletions