diff options
author | RafaĆ Bilski <rafalbilski@interia.pl> | 2007-05-17 16:36:42 -0400 |
---|---|---|
committer | Dave Jones <davej@redhat.com> | 2007-05-29 16:56:39 -0400 |
commit | 1b11d4ca6d9d7ea3ace9d241e52cc5fe3cfe3d8f (patch) | |
tree | 3e832fe9668cb6cc7cae0f14d975a9c83245ce00 /arch/i386/kernel/cpu/cpufreq | |
parent | 920dd0fbba1a7aa34c45b73699dcaf092850df51 (diff) |
[CPUFREQ] Longhaul - Move old_ratio to correct place
Move one line where it should be. After first transition
Longhaul will skip frequency transition if destination
frequency is already set.
Signed-off-by: Rafal Bilski <rafalbilski@interia.pl>
Signed-off-by: Dave Jones <davej@redhat.com>
Diffstat (limited to 'arch/i386/kernel/cpu/cpufreq')
-rw-r--r-- | arch/i386/kernel/cpu/cpufreq/longhaul.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/i386/kernel/cpu/cpufreq/longhaul.c b/arch/i386/kernel/cpu/cpufreq/longhaul.c index d004e073b479..504c6c9107d5 100644 --- a/arch/i386/kernel/cpu/cpufreq/longhaul.c +++ b/arch/i386/kernel/cpu/cpufreq/longhaul.c | |||
@@ -87,6 +87,7 @@ static int clock_ratio[32]; | |||
87 | static int eblcr_table[32]; | 87 | static int eblcr_table[32]; |
88 | static int longhaul_version; | 88 | static int longhaul_version; |
89 | static struct cpufreq_frequency_table *longhaul_table; | 89 | static struct cpufreq_frequency_table *longhaul_table; |
90 | static unsigned int old_ratio = -1; | ||
90 | 91 | ||
91 | #ifdef CONFIG_CPU_FREQ_DEBUG | 92 | #ifdef CONFIG_CPU_FREQ_DEBUG |
92 | static char speedbuffer[8]; | 93 | static char speedbuffer[8]; |
@@ -251,7 +252,6 @@ static void longhaul_setstate(unsigned int clock_ratio_index) | |||
251 | { | 252 | { |
252 | int speed, mult; | 253 | int speed, mult; |
253 | struct cpufreq_freqs freqs; | 254 | struct cpufreq_freqs freqs; |
254 | static unsigned int old_ratio=-1; | ||
255 | unsigned long flags; | 255 | unsigned long flags; |
256 | unsigned int pic1_mask, pic2_mask; | 256 | unsigned int pic1_mask, pic2_mask; |
257 | 257 | ||