Skip to content

Commit 24e988c

Browse files
Anshuman Khandualtorvalds
authored andcommitted
mm: generalize ARCH_HAS_FILTER_PGPROT
ARCH_HAS_FILTER_PGPROT config has duplicate definitions on platforms that subscribe it. Instead make it a generic config option which can be selected on applicable platforms when required. Link: https://lkml.kernel.org/r/1643004823-16441-1-git-send-email-anshuman.khandual@arm.com Signed-off-by: Anshuman Khandual <anshuman.khandual@arm.com> Acked-by: Catalin Marinas <catalin.marinas@arm.com> Cc: Will Deacon <will@kernel.org> Cc: Thomas Gleixner <tglx@linutronix.de> Cc: Ingo Molnar <mingo@redhat.com> Cc: "H. Peter Anvin" <hpa@zytor.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
1 parent 2c86599 commit 24e988c

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

arch/x86/Kconfig

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -337,9 +337,6 @@ config GENERIC_CALIBRATE_DELAY
337337
config ARCH_HAS_CPU_RELAX
338338
def_bool y
339339

340-
config ARCH_HAS_FILTER_PGPROT
341-
def_bool y
342-
343340
config ARCH_HIBERNATION_POSSIBLE
344341
def_bool y
345342

mm/Kconfig

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -762,6 +762,9 @@ config ARCH_HAS_CURRENT_STACK_POINTER
762762
register alias named "current_stack_pointer", this config can be
763763
selected.
764764

765+
config ARCH_HAS_FILTER_PGPROT
766+
bool
767+
765768
config ARCH_HAS_PTE_DEVMAP
766769
bool
767770

0 commit comments

Comments
 (0)