]> www.infradead.org Git - users/jedix/linux-maple.git/commit
x86/cpuid: Refactor <asm/cpuid.h>
authorAhmed S. Darwish <darwi@linutronix.de>
Mon, 17 Mar 2025 22:18:20 +0000 (23:18 +0100)
committerIngo Molnar <mingo@kernel.org>
Wed, 19 Mar 2025 10:19:22 +0000 (11:19 +0100)
commitadc574269bca8dbde9f8f22841e40d3380241921
treeee581eeceaf7acb0d6b457e81fdc83c11b6de16e
parent82070bc0425db949b406ede1c7f066346f5b3eb9
x86/cpuid: Refactor <asm/cpuid.h>

In preparation for future commits where CPUID headers will be expanded,
refactor the CPUID header <asm/cpuid.h> into:

    asm/cpuid/
    ├── api.h
    └── types.h

Move the CPUID data structures into <asm/cpuid/types.h> and the access
APIs into <asm/cpuid/api.h>.  Let <asm/cpuid.h> be just an include of
<asm/cpuid/api.h> so that existing call sites do not break.

Suggested-by: Ingo Molnar <mingo@kernel.org>
Signed-off-by: Ahmed S. Darwish <darwi@linutronix.de>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Cc: Andrew Cooper <andrew.cooper3@citrix.com>
Cc: "H. Peter Anvin" <hpa@zytor.com>
Cc: John Ogness <john.ogness@linutronix.de>
Cc: "Ahmed S. Darwish" <darwi@linutronix.de>
Cc: x86-cpuid@lists.linux.dev
Link: https://lore.kernel.org/r/20250317221824.3738853-2-mingo@kernel.org
arch/x86/include/asm/cpuid.h
arch/x86/include/asm/cpuid/api.h [new file with mode: 0644]
arch/x86/include/asm/cpuid/types.h [new file with mode: 0644]