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/64: Fix an incorrect warning with CONFIG_DEBUG_VM=y, !PCID

I've been staring at the word PCID too long.

Fixes: f13c8e8c58ba ("x86/mm: Reinitialize TLB state on hotplug and resume")
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Andy Lutomirski <luto@kernel.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

authored by

Andy Lutomirski and committed by
Linus Torvalds
7898f796 4dfc2788

+1 -1
+1 -1
arch/x86/mm/tlb.c
··· 241 241 * doesn't work like other CR4 bits because it can only be set from 242 242 * long mode.) 243 243 */ 244 - WARN_ON(boot_cpu_has(X86_CR4_PCIDE) && 244 + WARN_ON(boot_cpu_has(X86_FEATURE_PCID) && 245 245 !(cr4_read_shadow() & X86_CR4_PCIDE)); 246 246 247 247 /* Force ASID 0 and force a TLB flush. */