Skip to content

Commit 5f882f4

Browse files
Anshuman Khandualwilldeacon
authored andcommitted
arm64/mm: Drop INIT_MM_CONTEXT()
Platform override for INIT_MM_CONTEXT() is redundant because swapper_pg_dir always gets assigned as the pgd during init_mm initialization. So just drop this override on arm64. Originally this override was added via the 'commit 2b5548b ("arm64/mm: Separate boot-time page tables from swapper_pg_dir")' because non standard init_pg_dir was assigned as the pgd. Subsequently it was changed as default swapper_pg_dir by the 'commit ba5b033 ("arm64: mm: omit redundant remap of kernel image")', which might have also just dropped this override. Cc: Catalin Marinas <[email protected]> Cc: Will Deacon <[email protected]> Cc: Ard Biesheuvel <[email protected]> Cc: Ryan Roberts <[email protected]> Cc: Mark Rutland <[email protected]> Cc: [email protected] Cc: [email protected] Signed-off-by: Anshuman Khandual <[email protected]> Acked-by: Ard Biesheuvel <[email protected]> Reviewed-by: Ryan Roberts <[email protected]> Reviewed-by: Gavin Shan <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Will Deacon <[email protected]>
1 parent fac04ef commit 5f882f4

File tree

1 file changed

+0
-3
lines changed
  • arch/arm64/include/asm

1 file changed

+0
-3
lines changed

arch/arm64/include/asm/mmu.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -109,8 +109,5 @@ static inline bool kaslr_requires_kpti(void)
109109
return true;
110110
}
111111

112-
#define INIT_MM_CONTEXT(name) \
113-
.pgd = swapper_pg_dir,
114-
115112
#endif /* !__ASSEMBLY__ */
116113
#endif

0 commit comments

Comments
 (0)