cpufreq Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH][3/4] Longhaul - Move old_ratio to correct place
@ 2007-05-17 20:36 Rafał Bilski
  0 siblings, 0 replies; only message in thread
From: Rafał Bilski @ 2007-05-17 20:36 UTC (permalink / raw)
  To: Dave Jones; +Cc: cpufreq


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>
---
 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
--- 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];
 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;
 
-- 



----------------------------------------------------------------------
Wicie, rozumicie....
Zobacz >>> http://link.interia.pl/f1a74

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2007-05-17 20:36 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-05-17 20:36 [PATCH][3/4] Longhaul - Move old_ratio to correct place Rafał Bilski

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox