Skip to contentSkip to conversation

x86/cpu: remove obsolete aperfmperf_get_khz declaration

PATCH Applied Junxiao Chang 3 participants 4 messages Jun 5 x86

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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()")
---
 arch/x86/kernel/cpu/cpu.h | 1 -
 1 file changed, 1 deletion(-)
arch/x86/kernel/cpu/cpu.h +0 -1
index 5c7a3a71191a1..dca2d5845e427 100644
@@ -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);
Signature · 1 line
2.43.0
merge bot Applied
#1 lore raw

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

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

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 <[email protected]>
AuthorDate:    Sat, 06 Jun 2026 10:15:14 +08:00
Committer:     Ingo Molnar <[email protected]>
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()")
---
 arch/x86/kernel/cpu/cpu.h | 1 -
 1 file changed, 1 deletion(-)
arch/x86/kernel/cpu/cpu.h +0 -1
index 5c7a3a7..dca2d58 100644
@@ -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);
Reviewed-by on v1 1/1
#2 lore raw
In reply to Junxiao Chang
Quoted 6 lines · Junxiao Chang

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()")

Plain leftover, dunno if a fixes tag is warranted, in any case:

merge bot Applied
#3 lore raw

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

In reply to Junxiao Chang
The following commit has been merged into the x86/cleanups branch of tip:

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 <[email protected]>
AuthorDate:    Sat, 06 Jun 2026 10:15:14 +08:00
Committer:     Ingo Molnar <[email protected]>
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()")
---
 arch/x86/kernel/cpu/cpu.h | 1 -
 1 file changed, 1 deletion(-)
arch/x86/kernel/cpu/cpu.h +0 -1
index 5c7a3a7..dca2d58 100644
@@ -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);