From 8db7e96a2cc871710e3e9fe88c57f06391366d42 Mon Sep 17 00:00:00 2001 From: Viresh Kumar Date: Thu, 16 May 2013 14:58:52 +0530 Subject: [PATCH] cpufreq: interactive: Remove unnecessary cpu_online() check Cpufreq no longer calls governor callback for offlined cpus. i.e. All policy->cpus are guaranteed to be online. Hence we don't need explicit check to see if cpu is online or not. Change-Id: I9ad85ea4addd5b4a40952e59ed730dd15e328690 Signed-off-by: Viresh Kumar --- drivers/cpufreq/cpufreq_interactive.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/drivers/cpufreq/cpufreq_interactive.c b/drivers/cpufreq/cpufreq_interactive.c index a66748e13b38..378835baa844 100644 --- a/drivers/cpufreq/cpufreq_interactive.c +++ b/drivers/cpufreq/cpufreq_interactive.c @@ -1073,9 +1073,6 @@ static int cpufreq_governor_interactive(struct cpufreq_policy *policy, switch (event) { case CPUFREQ_GOV_START: - if (!cpu_online(policy->cpu)) - return -EINVAL; - mutex_lock(&gov_lock); freq_table = -- 2.34.1