Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit cc29c0f3 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "msm: rq_stats: Use cpufreq API to get the current frequency"

parents 00b95add 0d6d479b
Loading
Loading
Loading
Loading
+2 −3
Original line number Diff line number Diff line
@@ -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) * 1000;
		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) * 1000;
		cpumask_copy(pcpu->related_cpus, cpu_policy.cpus);
	}
	freq_transition.notifier_call = cpufreq_transition_handler;