Skip to content

Commit cebc774

Browse files
Anshuman Khandualtorvalds
authored andcommitted
mm/thp: make ARCH_ENABLE_SPLIT_PMD_PTLOCK dependent on PGTABLE_LEVELS > 2
ARCH_ENABLE_SPLIT_PMD_PTLOCK is irrelevant unless there are more than two page table levels including PMD (also per Documentation/vm/split_page_table_lock.rst). Make this dependency explicit on remaining platforms i.e x86 and s390 where ARCH_ENABLE_SPLIT_PMD_PTLOCK is subscribed. Link: https://lkml.kernel.org/r/1622013501-20409-1-git-send-email-anshuman.khandual@arm.com Signed-off-by: Anshuman Khandual <anshuman.khandual@arm.com> Acked-by: Gerald Schaefer <gerald.schaefer@linux.ibm.com> # s390 Cc: Heiko Carstens <hca@linux.ibm.com> Cc: Vasily Gorbik <gor@linux.ibm.com> Cc: Thomas Gleixner <tglx@linutronix.de> Cc: Ingo Molnar <mingo@redhat.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
1 parent e346e66 commit cebc774

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

‎arch/s390/Kconfig‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ config S390
6262
select ARCH_BINFMT_ELF_STATE
6363
select ARCH_ENABLE_MEMORY_HOTPLUG if SPARSEMEM
6464
select ARCH_ENABLE_MEMORY_HOTREMOVE
65-
select ARCH_ENABLE_SPLIT_PMD_PTLOCK
65+
select ARCH_ENABLE_SPLIT_PMD_PTLOCK if PGTABLE_LEVELS > 2
6666
select ARCH_HAS_DEBUG_VM_PGTABLE
6767
select ARCH_HAS_DEBUG_WX
6868
select ARCH_HAS_DEVMEM_IS_ALLOWED

‎arch/x86/Kconfig‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ config X86
6363
select ARCH_ENABLE_HUGEPAGE_MIGRATION if X86_64 && HUGETLB_PAGE && MIGRATION
6464
select ARCH_ENABLE_MEMORY_HOTPLUG if X86_64 || (X86_32 && HIGHMEM)
6565
select ARCH_ENABLE_MEMORY_HOTREMOVE if MEMORY_HOTPLUG
66-
select ARCH_ENABLE_SPLIT_PMD_PTLOCK if X86_64 || X86_PAE
66+
select ARCH_ENABLE_SPLIT_PMD_PTLOCK if (PGTABLE_LEVELS > 2) && (X86_64 || X86_PAE)
6767
select ARCH_ENABLE_THP_MIGRATION if X86_64 && TRANSPARENT_HUGEPAGE
6868
select ARCH_HAS_ACPI_TABLE_UPGRADE if ACPI
6969
select ARCH_HAS_CACHE_LINE_SIZE

0 commit comments

Comments
 (0)