x86/cpu: Provide cpuid_read() et al.
authorThomas Gleixner <tglx@linutronix.de>
Wed, 14 Feb 2024 20:29:39 +0000 (21:29 +0100)
committerThomas Gleixner <tglx@linutronix.de>
Thu, 15 Feb 2024 21:07:36 +0000 (22:07 +0100)
commit43d86e3cd9a77912772cf7ad37ad94211bf7351d
tree4c8a2061cb829eecf85bd702ca097640793a57d1
parent841c35169323cd833294798e58b9bf63fa4fa1de
x86/cpu: Provide cpuid_read() et al.

Provide a few helper functions to read CPUID leafs or individual registers
into a data structure without requiring unions.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Tested-by: Juergen Gross <jgross@suse.com>
Tested-by: Sohil Mehta <sohil.mehta@intel.com>
Tested-by: Michael Kelley <mhklinux@outlook.com>
Tested-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Tested-by: Zhang Rui <rui.zhang@intel.com>
Tested-by: Wang Wendy <wendy.wang@intel.com>
Tested-by: K Prateek Nayak <kprateek.nayak@amd.com>
Acked-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Link: https://lore.kernel.org/r/878r3mg570.ffs@tglx
arch/x86/include/asm/cpuid.h