diff options
author | Dave Jones <davej@redhat.com> | 2006-02-28 00:43:23 -0500 |
---|---|---|
committer | Dave Jones <davej@redhat.com> | 2006-02-28 00:43:23 -0500 |
commit | 32ee8c3e470d86588b51dc42ed01e85c5fa0f180 (patch) | |
tree | d544cc24c37c02f44f9cf89cb5647d74a61d7ce6 /drivers/cpufreq/freq_table.c | |
parent | 8ad5496d2359a19127ad9f2eda69485025c9917f (diff) |
[CPUFREQ] Lots of whitespace & CodingStyle cleanup.
Signed-off-by: Dave Jones <davej@redhat.com>
Diffstat (limited to 'drivers/cpufreq/freq_table.c')
-rw-r--r-- | drivers/cpufreq/freq_table.c | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/drivers/cpufreq/freq_table.c b/drivers/cpufreq/freq_table.c index ba460bdea60f..a4818ce88919 100644 --- a/drivers/cpufreq/freq_table.c +++ b/drivers/cpufreq/freq_table.c | |||
@@ -59,9 +59,8 @@ int cpufreq_frequency_table_verify(struct cpufreq_policy *policy, | |||
59 | if (!cpu_online(policy->cpu)) | 59 | if (!cpu_online(policy->cpu)) |
60 | return -EINVAL; | 60 | return -EINVAL; |
61 | 61 | ||
62 | cpufreq_verify_within_limits(policy, | 62 | cpufreq_verify_within_limits(policy, |
63 | policy->cpuinfo.min_freq, | 63 | policy->cpuinfo.min_freq, policy->cpuinfo.max_freq); |
64 | policy->cpuinfo.max_freq); | ||
65 | 64 | ||
66 | for (i=0; (table[i].frequency != CPUFREQ_TABLE_END); i++) { | 65 | for (i=0; (table[i].frequency != CPUFREQ_TABLE_END); i++) { |
67 | unsigned int freq = table[i].frequency; | 66 | unsigned int freq = table[i].frequency; |
@@ -76,9 +75,8 @@ int cpufreq_frequency_table_verify(struct cpufreq_policy *policy, | |||
76 | if (!count) | 75 | if (!count) |
77 | policy->max = next_larger; | 76 | policy->max = next_larger; |
78 | 77 | ||
79 | cpufreq_verify_within_limits(policy, | 78 | cpufreq_verify_within_limits(policy, |
80 | policy->cpuinfo.min_freq, | 79 | policy->cpuinfo.min_freq, policy->cpuinfo.max_freq); |
81 | policy->cpuinfo.max_freq); | ||
82 | 80 | ||
83 | dprintk("verification lead to (%u - %u kHz) for cpu %u\n", policy->min, policy->max, policy->cpu); | 81 | dprintk("verification lead to (%u - %u kHz) for cpu %u\n", policy->min, policy->max, policy->cpu); |
84 | 82 | ||
@@ -199,7 +197,7 @@ EXPORT_SYMBOL_GPL(cpufreq_freq_attr_scaling_available_freqs); | |||
199 | * if you use these, you must assure that the frequency table is valid | 197 | * if you use these, you must assure that the frequency table is valid |
200 | * all the time between get_attr and put_attr! | 198 | * all the time between get_attr and put_attr! |
201 | */ | 199 | */ |
202 | void cpufreq_frequency_table_get_attr(struct cpufreq_frequency_table *table, | 200 | void cpufreq_frequency_table_get_attr(struct cpufreq_frequency_table *table, |
203 | unsigned int cpu) | 201 | unsigned int cpu) |
204 | { | 202 | { |
205 | dprintk("setting show_table for cpu %u to %p\n", cpu, table); | 203 | dprintk("setting show_table for cpu %u to %p\n", cpu, table); |