Commit 18a7247d authored by Dave Jones's avatar Dave Jones

[CPUFREQ] Fix up whitespace in conservative governor.

Signed-off-by: default avatarDave Jones <davej@redhat.com>
parent a8d7c3bc
...@@ -250,15 +250,15 @@ static ssize_t store_ignore_nice_load(struct cpufreq_policy *policy, ...@@ -250,15 +250,15 @@ static ssize_t store_ignore_nice_load(struct cpufreq_policy *policy,
unsigned int j; unsigned int j;
ret = sscanf (buf, "%u", &input); ret = sscanf(buf, "%u", &input);
if ( ret != 1 ) if (ret != 1)
return -EINVAL; return -EINVAL;
if ( input > 1 ) if (input > 1)
input = 1; input = 1;
mutex_lock(&dbs_mutex); 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); mutex_unlock(&dbs_mutex);
return count; return count;
} }
...@@ -282,12 +282,12 @@ static ssize_t store_freq_step(struct cpufreq_policy *policy, ...@@ -282,12 +282,12 @@ static ssize_t store_freq_step(struct cpufreq_policy *policy,
unsigned int input; unsigned int input;
int ret; int ret;
ret = sscanf (buf, "%u", &input); ret = sscanf(buf, "%u", &input);
if ( ret != 1 ) if (ret != 1)
return -EINVAL; return -EINVAL;
if ( input > 100 ) if (input > 100)
input = 100; input = 100;
/* no need to test here if freq_step is zero as the user might actually /* 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, ...@@ -483,8 +483,7 @@ static int cpufreq_governor_dbs(struct cpufreq_policy *policy,
switch (event) { switch (event) {
case CPUFREQ_GOV_START: case CPUFREQ_GOV_START:
if ((!cpu_online(cpu)) || if ((!cpu_online(cpu)) || (!policy->cur))
(!policy->cur))
return -EINVAL; return -EINVAL;
if (this_dbs_info->enable) /* Already enabled */ if (this_dbs_info->enable) /* Already enabled */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment