arch/x86/kernel/cpu/cpu.h | 1 - 1 file changed, 1 deletion(-)
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>
---
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 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);
--
2.43.0
On 6.06.26 г. 5:15 ч., Junxiao Chang wrote:
> 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>
Plain leftover, dunno if a fixes tag is warranted, in any case:
Reviewed-by: Nikolay Borisov <nik.borisov@suse.com>
The following commit has been merged into the x86/cleanups branch of tip:
Commit-ID: a5f28da54f36f1a8b289d9bdd3e780b2ede0da6f
Gitweb: https://git.kernel.org/tip/a5f28da54f36f1a8b289d9bdd3e780b2ede0da6f
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 15:10:25 +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>
Reviewed-by: Nikolay Borisov <nik.borisov@suse.com>
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);
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);
© 2016 - 2026 Red Hat, Inc.