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

Commit 69706092 authored by Junjie Wu's avatar Junjie Wu
Browse files

msm: cpufreq: Remove use of cpu_is_* API



cpu_is_* API is deprecated. Relevant targets now rely on is_sync for
proper cpufreq mask setup. Remove unnecessary cpu_is_* calls from
cpufreq.c

Change-Id: I326d24c24f37b34fba36dbf9fc08aa5071180b51
Signed-off-by: default avatarJunjie Wu <junjiew@codeaurora.org>
parent f476f24f
Loading
Loading
Loading
Loading
+3 −4
Original line number Diff line number Diff line
@@ -30,8 +30,8 @@
#include <linux/clk.h>
#include <linux/err.h>
#include <linux/platform_device.h>
#include <linux/of.h>
#include <trace/events/power.h>
#include <soc/qcom/socinfo.h>
#include <mach/cpufreq.h>

#ifdef CONFIG_DEBUG_FS
@@ -235,12 +235,11 @@ static int msm_cpufreq_init(struct cpufreq_policy *policy)
	if (table == NULL)
		return -ENODEV;
	/*
	 * In 8625, 8610, and 8226 both cpu core's frequency can not
	 * In some SoC, cpu cores' frequencies can not
	 * be changed independently. Each cpu is bound to
	 * same frequency. Hence set the cpumask to all cpu.
	 */
	if (cpu_is_msm8625() || cpu_is_msm8625q() || cpu_is_msm8226()
		|| cpu_is_msm8610() || is_sync)
	if (is_sync)
		cpumask_setall(policy->cpus);

	cpu_work = &per_cpu(cpufreq_work, policy->cpu);