History

x86/aperfmperf: Replace aperfmperf_get_khz()

The frequency invariance infrastructure provides the APERF/MPERF samples already. Utilize them for the cpu frequency display in /proc/cpuinfo. The sample is considered valid for 20ms. So for idle or isolated NOHZ full CPUs the function returns 0, which is matching the previous behaviour. This gets rid of the mass IPIs and a delay of 20ms for stabilizing observed by Eric when reading /proc/cpuinfo.

Thomas Gleixner committed 4 years ago

Commit 7d84c1e1 parent cd8c0e13 files · +35 −49Browse files

Showing the changes to include (1 of 3 files). Show all

Unified · Split

include/linux/cpufreq.h+0−1
@@ -1199,7 +1199,6 @@ static inline void sched_cpufreq_governor_change(struct cpufreq_policy *policy, · 1198 unmodified lines
1199 struct cpufreq_governor *old_gov) { }1199 struct cpufreq_governor *old_gov) { }
1200#endif1200#endif
1201 1201
1202extern void arch_freq_prepare_all(void);
1203extern unsigned int arch_freq_get_on_cpu(int cpu);1202extern unsigned int arch_freq_get_on_cpu(int cpu);
1204 1203
1205#ifndef arch_set_freq_scale1204#ifndef arch_set_freq_scale

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t