]> git.baikalelectronics.ru Git - kernel.git/commit
x86/mm/32: Move setup_clear_cpu_cap(X86_FEATURE_PCID) earlier
authorAndy Lutomirski <luto@kernel.org>
Sun, 17 Sep 2017 16:03:50 +0000 (09:03 -0700)
committerIngo Molnar <mingo@kernel.org>
Sun, 17 Sep 2017 16:59:08 +0000 (18:59 +0200)
commitb9173faeac8b029cfe5da2fcba6bd477417ad7d0
treeb3a2d58953c9fd760ef5d071c799f0ea49d45322
parentf3a20852469d282dde7482db6caffa640bc33957
x86/mm/32: Move setup_clear_cpu_cap(X86_FEATURE_PCID) earlier

Otherwise we might have the PCID feature bit set during cpu_init().

This is just for robustness.  I haven't seen any actual bugs here.

Signed-off-by: Andy Lutomirski <luto@kernel.org>
Cc: Borislav Petkov <bpetkov@suse.de>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Fixes: c7b3ec71baaa ("x86/mm: Disable PCID on 32-bit kernels")
Link: http://lkml.kernel.org/r/b16dae9d6b0db5d9801ddbebbfd83384097c61f3.1505663533.git.luto@kernel.org
Signed-off-by: Ingo Molnar <mingo@kernel.org>
arch/x86/kernel/cpu/bugs.c
arch/x86/kernel/cpu/common.c