mirror of
https://github.com/torvalds/linux.git
synced 2026-09-26 18:12:03 +02:00
x86/mm/pat: Use IS_ENABLED() instead of ifdef
Use IS_ENABLED() to check if we are on 32 bit. This standardizes this check with the other 32 bit check in the file. No functional changes. Signed-off-by: Vishal Moola <vishal.moola@gmail.com> Signed-off-by: Dave Hansen <dave.hansen@linux.intel.com> Reviewed-by: William Kucharski <william.kucharski@linux.dev> Acked-by: Mike Rapoport (Microsoft) <rppt@kernel.org> Link: https://patch.msgid.link/20260629185742.126987-2-vishal.moola@gmail.com
This commit is contained in:
parent
8cdeaa50ea
commit
e7616bb5ef
|
|
@ -888,8 +888,8 @@ static void __set_pmd_pte(pte_t *kpte, unsigned long address, pte_t pte)
|
|||
{
|
||||
/* change init_mm */
|
||||
set_pte_atomic(kpte, pte);
|
||||
#ifdef CONFIG_X86_32
|
||||
{
|
||||
|
||||
if (IS_ENABLED(CONFIG_X86_32)) {
|
||||
struct page *page;
|
||||
|
||||
list_for_each_entry(page, &pgd_list, lru) {
|
||||
|
|
@ -905,7 +905,6 @@ static void __set_pmd_pte(pte_t *kpte, unsigned long address, pte_t pte)
|
|||
set_pte_atomic((pte_t *)pmd, pte);
|
||||
}
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
static pgprot_t pgprot_clear_protnone_bits(pgprot_t prot)
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user