]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
x86/cpuid: Rename cpuid_leaf()/cpuid_subleaf() APIs
authorAhmed S. Darwish <darwi@linutronix.de>
Fri, 27 Mar 2026 02:15:20 +0000 (03:15 +0100)
committerBorislav Petkov (AMD) <bp@alien8.de>
Fri, 8 May 2026 21:10:14 +0000 (23:10 +0200)
commit5fbe09ebb4dc7e0fa54f7a26d6be72a33d7e6035
tree539de17a6ad3f96e11321eaa98bf0838c4ffab14
parent55cbcb6731bbea264716ad57eeedc0f98ec176c5
x86/cpuid: Rename cpuid_leaf()/cpuid_subleaf() APIs

A new CPUID model will be added where its APIs will be designated as the
official CPUID API.  Free the cpuid_leaf() and cpuid_subleaf() function
names for that API.  Rename them accordingly to cpuid_read() and
cpuid_read_subleaf().

For kernel/cpuid.c, rename its local file operations read function from
cpuid_read() to cpuid_read_f() so that it does not conflict with the new
API.

No functional change.

Signed-off-by: Ahmed S. Darwish <darwi@linutronix.de>
Signed-off-by: Borislav Petkov (AMD) <bp@alien8.de>
Link: https://lore.kernel.org/20260327021645.555257-1-darwi@linutronix.de
arch/x86/include/asm/cpuid/api.h
arch/x86/kernel/cpu/topology_amd.c
arch/x86/kernel/cpu/topology_ext.c
arch/x86/kernel/cpuid.c