]> err.no Git - linux-2.6/commitdiff
[CPUFREQ] Longhaul - Move old_ratio to correct place
authorRafał Bilski <rafalbilski@interia.pl>
Thu, 17 May 2007 20:36:42 +0000 (22:36 +0200)
committerDave Jones <davej@redhat.com>
Tue, 29 May 2007 20:56:39 +0000 (16:56 -0400)
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>
arch/i386/kernel/cpu/cpufreq/longhaul.c

index d004e073b479b81118f30fd7802e6457d054d5b3..504c6c9107d59f803341434debb0f024d830dbb2 100644 (file)
@@ -87,6 +87,7 @@ static int clock_ratio[32];
 static int eblcr_table[32];
 static int longhaul_version;
 static struct cpufreq_frequency_table *longhaul_table;
+static unsigned int old_ratio = -1;
 
 #ifdef CONFIG_CPU_FREQ_DEBUG
 static char speedbuffer[8];
@@ -251,7 +252,6 @@ static void longhaul_setstate(unsigned int clock_ratio_index)
 {
        int speed, mult;
        struct cpufreq_freqs freqs;
-       static unsigned int old_ratio=-1;
        unsigned long flags;
        unsigned int pic1_mask, pic2_mask;