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

Commit 60caf9c6 authored by Viresh Kumar's avatar Viresh Kumar Committed by Junjie Wu
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>
Git-commit: ad818d962134c16b1d8aff56edc8a2c4e12fa7b7
Git-Repo: https://android.googlesource.com/kernel/common.git


Signed-off-by: default avatarJunjie Wu <junjiew@codeaurora.org>
parent 93e2dd46
Loading
Loading
Loading
Loading
+0 −3
Original line number Diff line number Diff line
@@ -1211,9 +1211,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 =