summaryrefslogtreecommitdiff
path: root/tools/lib/python
diff options
context:
space:
mode:
authorAhmed S. Darwish <darwi@linutronix.de>2026-05-28 17:37:33 +0200
committerBorislav Petkov (AMD) <bp@alien8.de>2026-07-31 14:52:55 -0700
commit173dfdce3ba8b7d54d2476f76f723438dbaff391 (patch)
treefa6d3d7161860397a4319826642acc1ae0329e37 /tools/lib/python
parent21834b541d933d52a3359ba368645f375f8c9ad1 (diff)
x86/cpu: Use parsed CPUID(0x1)
On early boot CPU detection, use parsed CPUID(0x1) instead of a direct CPUID query. Beside the parser's centralization benefits, use the auto generated CPUID data types, and their C99 bitfields, instead of doing ugly bitwise operations. [ bp: - Use a common code pattern for l1 of fetching and checking it right after that - flip the check to save an indentation level - align assignments vertically. ] 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-12-darwi@linutronix.de
Diffstat (limited to 'tools/lib/python')
0 files changed, 0 insertions, 0 deletions