[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20250123172441.2DFF8BCA@davehans-spike.ostc.intel.com>
Date: Thu, 23 Jan 2025 09:24:41 -0800
From: Dave Hansen <dave.hansen@...ux.intel.com>
To: linux-kernel@...r.kernel.org
Cc: x86@...nel.org,tglx@...utronix.de,bp@...en8.de,joro@...tes.org,luto@...nel.org,peterz@...radead.org,kirill.shutemov@...ux.intel.com,rick.p.edgecombe@...el.com,jgross@...e.com,Dave Hansen <dave.hansen@...ux.intel.com>
Subject: [RFC][PATCH 8/8] x86/mm: Remove now unused SHARED_KERNEL_PMD
From: Dave Hansen <dave.hansen@...ux.intel.com>
All the users of SHARED_KERNEL_PMD are gone. Zap it.
Signed-off-by: Dave Hansen <dave.hansen@...ux.intel.com>
---
b/arch/x86/include/asm/pgtable-2level_types.h | 2 --
b/arch/x86/include/asm/pgtable-3level_types.h | 2 --
b/arch/x86/include/asm/pgtable_64_types.h | 2 --
3 files changed, 6 deletions(-)
diff -puN arch/x86/include/asm/pgtable-2level_types.h~zap-SHARED_KERNEL_PMD arch/x86/include/asm/pgtable-2level_types.h
--- a/arch/x86/include/asm/pgtable-2level_types.h~zap-SHARED_KERNEL_PMD 2025-01-23 09:20:53.502449700 -0800
+++ b/arch/x86/include/asm/pgtable-2level_types.h 2025-01-23 09:20:53.506449845 -0800
@@ -18,8 +18,6 @@ typedef union {
} pte_t;
#endif /* !__ASSEMBLY__ */
-#define SHARED_KERNEL_PMD 0
-
#define ARCH_PAGE_TABLE_SYNC_MASK PGTBL_PMD_MODIFIED
/*
diff -puN arch/x86/include/asm/pgtable-3level_types.h~zap-SHARED_KERNEL_PMD arch/x86/include/asm/pgtable-3level_types.h
--- a/arch/x86/include/asm/pgtable-3level_types.h~zap-SHARED_KERNEL_PMD 2025-01-23 09:20:53.502449700 -0800
+++ b/arch/x86/include/asm/pgtable-3level_types.h 2025-01-23 09:20:53.506449845 -0800
@@ -27,8 +27,6 @@ typedef union {
} pmd_t;
#endif /* !__ASSEMBLY__ */
-#define SHARED_KERNEL_PMD (!static_cpu_has(X86_FEATURE_PTI))
-
#define ARCH_PAGE_TABLE_SYNC_MASK PGTBL_PMD_MODIFIED
/*
diff -puN arch/x86/include/asm/pgtable_64_types.h~zap-SHARED_KERNEL_PMD arch/x86/include/asm/pgtable_64_types.h
--- a/arch/x86/include/asm/pgtable_64_types.h~zap-SHARED_KERNEL_PMD 2025-01-23 09:20:53.506449845 -0800
+++ b/arch/x86/include/asm/pgtable_64_types.h 2025-01-23 09:20:53.506449845 -0800
@@ -46,8 +46,6 @@ extern unsigned int ptrs_per_p4d;
#endif /* !__ASSEMBLY__ */
-#define SHARED_KERNEL_PMD 0
-
#ifdef CONFIG_X86_5LEVEL
/*
_
Powered by blists - more mailing lists