]> git.baikalelectronics.ru Git - kernel.git/commit
x86/cpu: Use MSR_IA32_MISC_ENABLE constants
authorPaolo Bonzini <pbonzini@redhat.com>
Tue, 19 Jul 2022 17:47:14 +0000 (13:47 -0400)
committerBorislav Petkov <bp@suse.de>
Tue, 19 Jul 2022 18:53:10 +0000 (20:53 +0200)
commitadf454e6f1ff63884588270b814a7b77da7e4f4c
tree10fdae3b49d9b250ad34a87ecfff7a19787638ed
parenta00fbcd89a476dcf1e1c9cc5616ffbef9c2cb6c9
x86/cpu: Use MSR_IA32_MISC_ENABLE constants

Instead of the magic numbers 1<<11 and 1<<12 use the constants
from msr-index.h.  This makes it obvious where those bits
of MSR_IA32_MISC_ENABLE are consumed (and in fact that Linux
consumes them at all) to simple minds that grep for
MSR_IA32_MISC_ENABLE_.*_UNAVAIL.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Borislav Petkov <bp@suse.de>
Link: https://lore.kernel.org/r/20220719174714.2410374-1-pbonzini@redhat.com
arch/x86/kernel/cpu/intel.c