Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

x86/mm: Remove duplicate check from build_cr3()

There is already a check for 'asid > MAX_ASID_AVAILABLE' in kern_pcid(), so
it is unnecessary to perform this check in build_cr3() right before calling
kern_pcid().

Remove it.

Signed-off-by: Yuntao Wang <yuntao.wang@linux.dev>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Link: https://lore.kernel.org/all/20240814124645.51019-1-yuntao.wang@linux.dev

authored by

Yuntao Wang and committed by
Thomas Gleixner
d4245fd4 1aa0c92f

-1
-1
arch/x86/mm/tlb.c
··· 158 158 unsigned long cr3 = __sme_pa(pgd) | lam; 159 159 160 160 if (static_cpu_has(X86_FEATURE_PCID)) { 161 - VM_WARN_ON_ONCE(asid > MAX_ASID_AVAILABLE); 162 161 cr3 |= kern_pcid(asid); 163 162 } else { 164 163 VM_WARN_ON_ONCE(asid != 0);