diff options
author | Dave Jones <davej@redhat.com> | 2006-05-31 00:09:31 +0200 |
---|---|---|
committer | Dave Jones <davej@redhat.com> | 2006-05-31 00:09:31 +0200 |
commit | 484944a5b002cf87b38a8f073d37afcfb8afff28 (patch) | |
tree | 40a960d5b4bee4ea5e4bafb2f1017f5d98484b87 /drivers/cpufreq | |
parent | [CPUFREQ] Fix another redundant initialisation in freq_table (diff) | |
download | linux-484944a5b002cf87b38a8f073d37afcfb8afff28.tar.xz linux-484944a5b002cf87b38a8f073d37afcfb8afff28.zip |
[CPUFREQ] Remove more freq_table reinitialisations.
Signed-off-by: Dave Jones <davej@redhat.com>
Diffstat (limited to 'drivers/cpufreq')
-rw-r--r-- | drivers/cpufreq/freq_table.c | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/drivers/cpufreq/freq_table.c b/drivers/cpufreq/freq_table.c index 427bf7a60d63..551f4ccf87fd 100644 --- a/drivers/cpufreq/freq_table.c +++ b/drivers/cpufreq/freq_table.c @@ -91,20 +91,24 @@ int cpufreq_frequency_table_target(struct cpufreq_policy *policy, unsigned int relation, unsigned int *index) { - struct cpufreq_frequency_table optimal = { .index = ~0, }; - struct cpufreq_frequency_table suboptimal = { .index = ~0, }; + struct cpufreq_frequency_table optimal = { + .index = ~0, + .frequency = 0, + }; + struct cpufreq_frequency_table suboptimal = { + .index = ~0, + .frequency = 0, + }; unsigned int i; dprintk("request for target %u kHz (relation: %u) for cpu %u\n", target_freq, relation, policy->cpu); switch (relation) { case CPUFREQ_RELATION_H: - optimal.frequency = 0; suboptimal.frequency = ~0; break; case CPUFREQ_RELATION_L: optimal.frequency = ~0; - suboptimal.frequency = 0; break; } |