From: Junxiao Chang Date: Sat, 6 Jun 2026 02:15:14 +0000 (+0800) Subject: x86/cpu: Remove obsolete aperfmperf_get_khz() declaration X-Git-Url: http://git.ipfire.org/gitweb/?a=commitdiff_plain;h=a5f28da54f36f1a8b289d9bdd3e780b2ede0da6f;p=thirdparty%2Fkernel%2Flinux.git 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 Signed-off-by: Ingo Molnar Reviewed-by: Nikolay Borisov Link: https://patch.msgid.link/20260606021514.1433619-1-junxiao.chang@intel.com --- diff --git a/arch/x86/kernel/cpu/cpu.h b/arch/x86/kernel/cpu/cpu.h index 5c7a3a71191a1..dca2d5845e427 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);