diff options
| author | Ahmed S. Darwish <darwi@linutronix.de> | 2026-05-28 17:37:32 +0200 |
|---|---|---|
| committer | Borislav Petkov (AMD) <bp@alien8.de> | 2026-07-31 13:57:04 -0700 |
| commit | 21834b541d933d52a3359ba368645f375f8c9ad1 (patch) | |
| tree | 86085143eaeebc4222122f3c35903adf37bbc9b9 /tools/lib/python | |
| parent | 21532edff7b08c9f9de743114375d635f95813f3 (diff) | |
x86/lib: Add CPUID(0x1) family and model calculation
The x86 library provides x86_family() and x86_model(). They take raw
CPUID register output and calculate the CPU family and model from it.
In follow-up work, the x86 subsystem will use APIs which access
previously-parsed CPUID leafs structure instead of doing direct CPUID queries.
These new APIs force using the auto generated leaf data types at
<asm/cpuid/leaf_types.h>.
Introduce x86 family and model calculation functions that take these
auto-generated data types. Refactor the original code so that no logic is
duplicated.
[ bp: Massage commit message, unbreak too long line. ]
Signed-off-by: Ahmed S. Darwish <darwi@linutronix.de>
Signed-off-by: Borislav Petkov (AMD) <bp@alien8.de>
Link: https://patch.msgid.link/20260528153923.403473-11-darwi@linutronix.de
Diffstat (limited to 'tools/lib/python')
0 files changed, 0 insertions, 0 deletions
