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

tip-bot2 for Junxiao Chang posted 1 patch 2 days, 20 hours ago
There is a newer version of this series
arch/x86/kernel/cpu/cpu.h | 1 -
1 file changed, 1 deletion(-)
[tip: x86/cleanups] x86/cpu: Remove obsolete aperfmperf_get_khz() declaration
Posted by tip-bot2 for Junxiao Chang 2 days, 20 hours ago
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@intel.com>
AuthorDate:    Sat, 06 Jun 2026 10:15:14 +08:00
Committer:     Ingo Molnar <mingo@kernel.org>
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@intel.com>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Link: https://patch.msgid.link/20260606021514.1433619-1-junxiao.chang@intel.com
---
 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);