diff options
author | 2022-07-19 13:47:14 -0400 | |
---|---|---|
committer | 2022-07-19 20:53:10 +0200 | |
commit | 3f2adf00f52b5f2e9e9f23bb5c77608fc9ee297c (patch) | |
tree | 10fdae3b49d9b250ad34a87ecfff7a19787638ed /scripts/generate_rust_analyzer.py | |
parent | x86: Fix comment for X86_FEATURE_ZEN (diff) | |
download | wireguard-linux-3f2adf00f52b5f2e9e9f23bb5c77608fc9ee297c.tar.xz wireguard-linux-3f2adf00f52b5f2e9e9f23bb5c77608fc9ee297c.zip |
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
Diffstat (limited to 'scripts/generate_rust_analyzer.py')
0 files changed, 0 insertions, 0 deletions