summaryrefslogtreecommitdiff
path: root/tools/lib/python
diff options
context:
space:
mode:
authorAhmed S. Darwish <darwi@linutronix.de>2026-05-28 17:37:32 +0200
committerBorislav Petkov (AMD) <bp@alien8.de>2026-07-31 13:57:04 -0700
commit21834b541d933d52a3359ba368645f375f8c9ad1 (patch)
tree86085143eaeebc4222122f3c35903adf37bbc9b9 /tools/lib/python
parent21532edff7b08c9f9de743114375d635f95813f3 (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