projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
763b334
)
cpufreq: interactive: Remove unnecessary cpu_online() check
author
Viresh Kumar
<viresh.kumar@linaro.org>
Thu, 16 May 2013 09:28:52 +0000
(14:58 +0530)
committer
Todd Poynor
<toddpoynor@google.com>
Wed, 16 Oct 2013 00:53:27 +0000
(17:53 -0700)
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 <viresh.kumar@linaro.org>
drivers/cpufreq/cpufreq_interactive.c
patch
|
blob
|
history
diff --git
a/drivers/cpufreq/cpufreq_interactive.c
b/drivers/cpufreq/cpufreq_interactive.c
index a66748e13b38d9577f21078dd885a515f2712758..378835baa8443bf713f3b65057a2e536c86898ef 100644
(file)
--- 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 =