projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
42f91fa
)
cpufreq: No need to check for has_target()
author
Viresh Kumar
<
[email protected]
>
Fri, 2 Jan 2015 07:04:27 +0000
(12:34 +0530)
committer
Rafael J. Wysocki
<
[email protected]
>
Fri, 23 Jan 2015 21:49:34 +0000
(22:49 +0100)
Either we can be setpolicy or target type, nothing else. And so the
else part of setpolicy will automatically be of has_target() type.
And so we don't need to check it again.
Signed-off-by: Viresh Kumar <
[email protected]
>
Signed-off-by: Rafael J. Wysocki <
[email protected]
>
drivers/cpufreq/cpufreq.c
patch
|
blob
|
history
diff --git
a/drivers/cpufreq/cpufreq.c
b/drivers/cpufreq/cpufreq.c
index faffdaaba34341fc66d5e0c29b646bae7e301c79..1454ab3f0023ac6073c7f807d5c5029b4cfb64c9 100644
(file)
--- a/
drivers/cpufreq/cpufreq.c
+++ b/
drivers/cpufreq/cpufreq.c
@@
-464,7
+464,7
@@
static int cpufreq_parse_governor(char *str_governor, unsigned int *policy,
*policy = CPUFREQ_POLICY_POWERSAVE;
err = 0;
}
- } else
if (has_target())
{
+ } else {
struct cpufreq_governor *t;
mutex_lock(&cpufreq_governor_mutex);