]> git.baikalelectronics.ru Git - kernel.git/commit
x86/asm: Get rid of __read_cr4_safe()
authorAndy Lutomirski <luto@kernel.org>
Thu, 29 Sep 2016 19:48:12 +0000 (12:48 -0700)
committerThomas Gleixner <tglx@linutronix.de>
Fri, 30 Sep 2016 10:40:12 +0000 (12:40 +0200)
commit6fa2d1d7a5201459efbe4cffea08eafdf8b73d04
tree623f3cb97a13b616e813aeadb46a56689d555141
parent9df85e79a2d0d4289545811317603afea5abbcc2
x86/asm: Get rid of __read_cr4_safe()

We use __read_cr4() vs __read_cr4_safe() inconsistently.  On
CR4-less CPUs, all CR4 bits are effectively clear, so we can make
the code simpler and more robust by making __read_cr4() always fix
up faults on 32-bit kernels.

This may fix some bugs on old 486-like CPUs, but I don't have any
easy way to test that.

Signed-off-by: Andy Lutomirski <luto@kernel.org>
Cc: Brian Gerst <brgerst@gmail.com>
Cc: Borislav Petkov <bp@alien8.de>
Cc: david@saggiorato.net
Link: http://lkml.kernel.org/r/ea647033d357d9ce2ad2bbde5a631045f5052fb6.1475178370.git.luto@kernel.org
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
arch/x86/include/asm/paravirt.h
arch/x86/include/asm/paravirt_types.h
arch/x86/include/asm/special_insns.h
arch/x86/include/asm/tlbflush.h
arch/x86/kernel/paravirt.c
arch/x86/kernel/process_32.c
arch/x86/kernel/setup.c
arch/x86/power/cpu.c
arch/x86/xen/enlighten.c