diff options
| author | Archana Sathyakumar <asathyak@codeaurora.org> | 2014-02-07 09:21:09 -0700 |
|---|---|---|
| committer | Gerrit - the friendly Code Review server <code-review@localhost> | 2014-12-04 11:37:21 -0800 |
| commit | eae4deb16af09904d0bde83a25ceb84741e2a8e6 (patch) | |
| tree | 6a38cf6340ca46cc5a694e5c3d432881e44c9ad3 | |
| parent | 9cc0afb4cfddbf1211027951ae62adba37813574 (diff) | |
msm: rq_stats: Use cpufreq API to get the current frequency
Since the acpuclock APIs are deprecated, use the cpufreq to
get the current frequency of CPUs to calculate the cpu
normalized load value.
Change-Id: I6e381d584d6725ef964bad86c835d44f3046e9c3
Signed-off-by: Archana Sathyakumar <asathyak@codeaurora.org>
| -rw-r--r-- | arch/arm/mach-msm/msm_rq_stats.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/arch/arm/mach-msm/msm_rq_stats.c b/arch/arm/mach-msm/msm_rq_stats.c index 70733cab0cf..3754f05d25f 100644 --- a/arch/arm/mach-msm/msm_rq_stats.c +++ b/arch/arm/mach-msm/msm_rq_stats.c @@ -30,7 +30,6 @@ #include <linux/kernel_stat.h> #include <linux/tick.h> #include <asm/smp_plat.h> -#include "acpuclock.h" #include <linux/suspend.h> #define MAX_LONG_SIZE 24 @@ -177,7 +176,7 @@ static int cpu_hotplug_handler(struct notifier_block *nb, switch (val) { case CPU_ONLINE: if (!this_cpu->cur_freq) - this_cpu->cur_freq = acpuclk_get_rate(cpu); + this_cpu->cur_freq = cpufreq_quick_get(cpu); update_related_cpus(); case CPU_ONLINE_FROZEN: this_cpu->avg_load_maxfreq = 0; @@ -381,7 +380,7 @@ static int __init msm_rq_stats_init(void) cpufreq_get_policy(&cpu_policy, i); pcpu->policy_max = cpu_policy.cpuinfo.max_freq; if (cpu_online(i)) - pcpu->cur_freq = acpuclk_get_rate(i); + pcpu->cur_freq = cpufreq_quick_get(i); cpumask_copy(pcpu->related_cpus, cpu_policy.cpus); } freq_transition.notifier_call = cpufreq_transition_handler; |
