Commit c5a4bf91 authored by James Morse's avatar James Morse Committed by Zeng Heng
Browse files

arm64: mpam: Select ARCH_HAS_CPU_RESCTRL

maillist inclusion
category: feature
bugzilla: https://gitee.com/openeuler/kernel/issues/I8T2RT

Reference: https://git.kernel.org/pub/scm/linux/kernel/git/morse/linux.git/log/?h=mpam/snapshot/v6.7-rc2



---------------------------

Enough MPAM support is present to enable ARCH_HAS_CPU_RESCTRL.
Let it rip^Wlink!

Signed-off-by: default avatarJames Morse <james.morse@arm.com>
Signed-off-by: default avatarZeng Heng <zengheng4@huawei.com>
parent 0fac724d
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -2059,7 +2059,8 @@ config ARM64_TLB_RANGE
config ARM64_MPAM
	bool "Enable support for MPAM"
	select ACPI_MPAM if ACPI
	select ARM_CPU_RESCTRL
	select ARCH_HAS_CPU_RESCTRL
	select RESCTRL_FS
	help
	  Memory Partitioning and Monitoring is an optional extension
	  that allows the CPUs to mark load and store transactions with
+1 −0
Original line number Diff line number Diff line
#include <linux/arm_mpam.h>
+3 −1
Original line number Diff line number Diff line
@@ -2,5 +2,7 @@
# CPU resources, not containers or cgroups etc.
config ARM_CPU_RESCTRL
	bool
	depends on ARM64
	default y
	depends on ARM64 && ARCH_HAS_CPU_RESCTRL
	depends on MISC_FILESYSTEMS
	select RESCTRL_RMID_DEPENDS_ON_CLOSID