rk29: cpufreq: limit by temp support conservative and interactive governor

This commit is contained in:
黄涛
2011-08-12 20:06:14 +08:00
parent 65a84ff454
commit 93d8dc2796

View File

@@ -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)