[tip: x86/cleanups] x86/cpu: Remove obsolete aperfmperf_get_khz() declaration

From: tip-bot2 for Junxiao Chang

Date: Fri Jun 05 2026 - 04:53:13 EST


The following commit has been merged into the x86/cleanups branch of tip:

Commit-ID: c2f8cd535cd4d54ff957ed3440690035d7b55162
Gitweb: https://git.kernel.org/tip/c2f8cd535cd4d54ff957ed3440690035d7b55162
Author: Junxiao Chang <junxiao.chang@xxxxxxxxx>
AuthorDate: Sat, 06 Jun 2026 10:15:14 +08:00
Committer: Ingo Molnar <mingo@xxxxxxxxxx>
CommitterDate: Fri, 05 Jun 2026 10:41:46 +02:00

x86/cpu: Remove obsolete aperfmperf_get_khz() declaration

aperfmperf_get_khz() was replaced by arch_freq_get_on_cpu().
The remaining declaration in the header file is no longer used
and should be removed.

Fixes: f3eca381bd49 ("x86/aperfmperf: Replace arch_freq_get_on_cpu()")
Signed-off-by: Junxiao Chang <junxiao.chang@xxxxxxxxx>
Signed-off-by: Ingo Molnar <mingo@xxxxxxxxxx>
Link: https://patch.msgid.link/20260606021514.1433619-1-junxiao.chang@xxxxxxxxx
---
arch/x86/kernel/cpu/cpu.h | 1 -
1 file changed, 1 deletion(-)

diff --git a/arch/x86/kernel/cpu/cpu.h b/arch/x86/kernel/cpu/cpu.h
index 5c7a3a7..dca2d58 100644
--- a/arch/x86/kernel/cpu/cpu.h
+++ b/arch/x86/kernel/cpu/cpu.h
@@ -75,7 +75,6 @@ static inline struct amd_northbridge *amd_init_l3_cache(int index)
}
#endif

-unsigned int aperfmperf_get_khz(int cpu);
void cpu_select_mitigations(void);

extern void x86_spec_ctrl_setup_ap(void);