提交 18a7247d 编写于 作者: D Dave Jones

[CPUFREQ] Fix up whitespace in conservative governor.

Signed-off-by: NDave Jones <davej@redhat.com>
上级 a8d7c3bc
......@@ -250,15 +250,15 @@ static ssize_t store_ignore_nice_load(struct cpufreq_policy *policy,
unsigned int j;
ret = sscanf (buf, "%u", &input);
if ( ret != 1 )
ret = sscanf(buf, "%u", &input);
if (ret != 1)
return -EINVAL;
if ( input > 1 )
if (input > 1)
input = 1;
mutex_lock(&dbs_mutex);
if ( input == dbs_tuners_ins.ignore_nice ) { /* nothing to do */
if (input == dbs_tuners_ins.ignore_nice) { /* nothing to do */
mutex_unlock(&dbs_mutex);
return count;
}
......@@ -282,12 +282,12 @@ static ssize_t store_freq_step(struct cpufreq_policy *policy,
unsigned int input;
int ret;
ret = sscanf (buf, "%u", &input);
ret = sscanf(buf, "%u", &input);
if ( ret != 1 )
if (ret != 1)
return -EINVAL;
if ( input > 100 )
if (input > 100)
input = 100;
/* no need to test here if freq_step is zero as the user might actually
......@@ -483,8 +483,7 @@ static int cpufreq_governor_dbs(struct cpufreq_policy *policy,
switch (event) {
case CPUFREQ_GOV_START:
if ((!cpu_online(cpu)) ||
(!policy->cur))
if ((!cpu_online(cpu)) || (!policy->cur))
return -EINVAL;
if (this_dbs_info->enable) /* Already enabled */
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册