Re: [PATCH v5 38/40] fs/resctrl: Add boiler plate for external resctrl code
From: Tony Luck
Date: Tue Oct 08 2024 - 19:03:45 EST
On Fri, Oct 04, 2024 at 06:03:45PM +0000, James Morse wrote:
> Add Makefile and Kconfig for fs/resctrl. Add ARCH_HAS_CPU_RESCTRL
> for the common parts of the resctrl interface and make X86_CPU_RESCTRL
> select this.
>
> Adding an include of asm/resctrl.h to linux/resctrl.h allows the
> /fs/resctrl files to switch over to using this header instead.
> diff --git a/arch/x86/kernel/cpu/resctrl/internal.h b/arch/x86/kernel/cpu/resctrl/internal.h
> index 4b7e370e71ac..973fddf7e9a3 100644
> --- a/arch/x86/kernel/cpu/resctrl/internal.h
> +++ b/arch/x86/kernel/cpu/resctrl/internal.h
> @@ -7,10 +7,9 @@
> #include <linux/kernfs.h>
> #include <linux/fs_context.h>
> #include <linux/jump_label.h>
> +#include <linux/resctrl.h>
> #include <linux/tick.h>
internal.h already has a #include of <linux/resctrl.h> it doesn't need
another one.
-Tony