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:
65a84ff
)
rk29: cpufreq: limit by temp support conservative and interactive governor
author
黄涛
<huangtao@rock-chips.com>
Fri, 12 Aug 2011 12:06:14 +0000
(20:06 +0800)
committer
黄涛
<huangtao@rock-chips.com>
Fri, 12 Aug 2011 12:06:36 +0000
(20:06 +0800)
arch/arm/mach-rk29/cpufreq.c
patch
|
blob
|
history
diff --git
a/arch/arm/mach-rk29/cpufreq.c
b/arch/arm/mach-rk29/cpufreq.c
index 9952961eb7c1782fdca4511293aa29c7caebf975..c6ca54753666857e782b53b908d0b79891d62112 100755
(executable)
--- a/
arch/arm/mach-rk29/cpufreq.c
+++ b/
arch/arm/mach-rk29/cpufreq.c
@@
-109,7
+109,10
@@
module_param_call(limit_avg_voltage, rk29_cpufreq_set_limit_avg_voltage, param_g
static bool rk29_cpufreq_is_ondemand_policy(struct cpufreq_policy *policy)
{
- return (policy && policy->governor && (policy->governor->name[0] == 'o'));
+ char c = 0;
+ if (policy && policy->governor)
+ c = policy->governor->name[0];
+ return (c == 'o' || c == 'i' || c == 'c');
}
int board_update_cpufreq_table(struct cpufreq_frequency_table *table)