x86/mm/64: Fix an incorrect warning with CONFIG_DEBUG_VM=y, !PCID
authorAndy Lutomirski <luto@kernel.org>
Sun, 10 Sep 2017 15:52:58 +0000 (08:52 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Sun, 10 Sep 2017 16:55:35 +0000 (09:55 -0700)
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>
arch/x86/mm/tlb.c

index dbbcfd5..37689a7 100644 (file)
@@ -241,7 +241,7 @@ void initialize_tlbstate_and_flush(void)
         * doesn't work like other CR4 bits because it can only be set from
         * long mode.)
         */
-       WARN_ON(boot_cpu_has(X86_CR4_PCIDE) &&
+       WARN_ON(boot_cpu_has(X86_FEATURE_PCID) &&
                !(cr4_read_shadow() & X86_CR4_PCIDE));
 
        /* Force ASID 0 and force a TLB flush. */