[CPUFREQ] checkpatch cleanups for ondemand governor.
Signed-off-by: Dave Jones <davej@redhat.com>
This commit is contained in:
@@ -512,8 +512,7 @@ static void do_dbs_timer(struct work_struct *work)
|
|||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
__cpufreq_driver_target(dbs_info->cur_policy,
|
__cpufreq_driver_target(dbs_info->cur_policy,
|
||||||
dbs_info->freq_lo,
|
dbs_info->freq_lo, CPUFREQ_RELATION_H);
|
||||||
CPUFREQ_RELATION_H);
|
|
||||||
}
|
}
|
||||||
queue_delayed_work_on(cpu, kondemand_wq, &dbs_info->work, delay);
|
queue_delayed_work_on(cpu, kondemand_wq, &dbs_info->work, delay);
|
||||||
unlock_policy_rwsem_write(cpu);
|
unlock_policy_rwsem_write(cpu);
|
||||||
@@ -617,12 +616,10 @@ static int cpufreq_governor_dbs(struct cpufreq_policy *policy,
|
|||||||
mutex_lock(&dbs_mutex);
|
mutex_lock(&dbs_mutex);
|
||||||
if (policy->max < this_dbs_info->cur_policy->cur)
|
if (policy->max < this_dbs_info->cur_policy->cur)
|
||||||
__cpufreq_driver_target(this_dbs_info->cur_policy,
|
__cpufreq_driver_target(this_dbs_info->cur_policy,
|
||||||
policy->max,
|
policy->max, CPUFREQ_RELATION_H);
|
||||||
CPUFREQ_RELATION_H);
|
|
||||||
else if (policy->min > this_dbs_info->cur_policy->cur)
|
else if (policy->min > this_dbs_info->cur_policy->cur)
|
||||||
__cpufreq_driver_target(this_dbs_info->cur_policy,
|
__cpufreq_driver_target(this_dbs_info->cur_policy,
|
||||||
policy->min,
|
policy->min, CPUFREQ_RELATION_L);
|
||||||
CPUFREQ_RELATION_L);
|
|
||||||
mutex_unlock(&dbs_mutex);
|
mutex_unlock(&dbs_mutex);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user