diff options
author | Tony Luck <tony.luck@intel.com> | 2024-04-16 14:19:03 -0700 |
---|---|---|
committer | Borislav Petkov (AMD) <bp@alien8.de> | 2024-04-22 11:43:48 +0200 |
commit | a9d0adce69075192961f3be466c4810a21b7bc9e (patch) | |
tree | e4c4f3fa4f9748f18c9e6c4af94af888cb3dc1bf /scripts/generate_rust_analyzer.py | |
parent | 90167e96588df747c9b47a04ebac59b71e3b413f (diff) | |
download | linux-a9d0adce69075192961f3be466c4810a21b7bc9e.tar.gz linux-a9d0adce69075192961f3be466c4810a21b7bc9e.tar.bz2 linux-a9d0adce69075192961f3be466c4810a21b7bc9e.zip |
x86/cpu/vfm: Add/initialize x86_vfm field to struct cpuinfo_x86
Refactor struct cpuinfo_x86 so that the vendor, family, and model
fields are overlaid in a union with a 32-bit field that combines
all three (together with a one byte reserved field in the upper
byte).
This will make it easy, cheap, and reliable to check all three
values at once.
See
https://lore.kernel.org/r/Zgr6kT8oULbnmEXx@agluck-desk3
for why the ordering is (low-to-high bits):
(vendor, family, model)
[ bp: Move comments over the line, add the backstory about the
particular order of the fields. ]
Signed-off-by: Tony Luck <tony.luck@intel.com>
Signed-off-by: Borislav Petkov (AMD) <bp@alien8.de>
Reviewed-by: Thomas Gleixner <tglx@linutronix.de>
Link: https://lore.kernel.org/r/20240416211941.9369-2-tony.luck@intel.com
Diffstat (limited to 'scripts/generate_rust_analyzer.py')
0 files changed, 0 insertions, 0 deletions