aboutsummaryrefslogtreecommitdiffstats
path: root/rust/helpers/xarray.c
diff options
context:
space:
mode:
authorJames Morse <[email protected]>2025-05-15 16:58:49 +0000
committerBorislav Petkov (AMD) <[email protected]>2025-05-16 10:21:00 +0000
commit279f225951e3c77a1708d77f557b4cc7bdbd76ed (patch)
tree82e49c8441f20e6c188f9f331064da278a6ca9c4 /rust/helpers/xarray.c
parentx86/resctrl: Fix types in resctrl_arch_mon_ctx_{alloc,free}() stubs (diff)
downloadkernel-279f225951e3c77a1708d77f557b4cc7bdbd76ed.tar.gz
kernel-279f225951e3c77a1708d77f557b4cc7bdbd76ed.zip
x86/resctrl: Move pseudo lock prototypes to include/linux/resctrl.h
The resctrl pseudo-lock feature allows an architecture to allocate data into particular cache portions, which are then treated as reserved to avoid that data ever being evicted. Setting this up is deeply architecture specific as it involves disabling prefetchers etc. It is not possible to support this kind of feature on arm64. Risc-V is assumed to be the same. The prototypes for the architecture code were added to x86's asm/resctrl.h, with other architectures able to provide stubs for their architecture. This forces other architectures to provide identical stubs. Move the prototypes and stubs to linux/resctrl.h, and switch between them using the existing Kconfig symbol. Signed-off-by: James Morse <[email protected]> Signed-off-by: Borislav Petkov (AMD) <[email protected]> Reviewed-by: Reinette Chatre <[email protected]> Reviewed-by: Fenghua Yu <[email protected]> Tested-by: Fenghua Yu <[email protected]> Tested-by: Babu Moger <[email protected]> Tested-by: Shaopeng Tan <[email protected]> Tested-by: Tony Luck <[email protected]> Link: https://lore.kernel.org/[email protected]
Diffstat (limited to 'rust/helpers/xarray.c')
0 files changed, 0 insertions, 0 deletions