From: Viresh Kumar Date: Thu, 16 May 2013 09:28:52 +0000 (+0530) Subject: cpufreq: interactive: Remove unnecessary cpu_online() check X-Git-Tag: firefly_0821_release~4090^2~498 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=ad818d962134c16b1d8aff56edc8a2c4e12fa7b7;p=firefly-linux-kernel-4.4.55.git 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 --- 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 =