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

Commit daa4454a authored by Viresh Kumar's avatar Viresh Kumar Committed by Amit Pundir
Browse files

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: default avatarViresh Kumar <viresh.kumar@linaro.org>
parent 457fc549
Loading
Loading
Loading
Loading
+0 −3
Original line number Diff line number Diff line
@@ -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 =