public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] longhaul: select Longhaul version 2 for capable CPUs
@ 2009-10-24 15:25 Krzysztof Helt
  2009-10-25  3:28 ` Dave Jones
  0 siblings, 1 reply; 7+ messages in thread
From: Krzysztof Helt @ 2009-10-24 15:25 UTC (permalink / raw)
  To: cpufreq; +Cc: LKLM

From: Krzysztof Helt <krzysztof.h1@wp.pl>

There is a typo in the longhaul detection code so only Longhaul v1 or Longhaul v3
is selected. The Longhaul v2 is not selected even for CPUs which are capable of.

Tested on PCChips Giga Pro board. Frequency changes work and the Longhaul v2
detects that the board is not capable of changing CPU voltage.

Signed-off-by: Krzysztof Helt <krzysztof.h1@wp.pl>

---
diff --git a/arch/x86/kernel/cpu/cpufreq/longhaul.c b/arch/x86/kernel/cpu/cpufreq/longhaul.c
index ce2ed3e..cabd2fa 100644
--- a/arch/x86/kernel/cpu/cpufreq/longhaul.c
+++ b/arch/x86/kernel/cpu/cpufreq/longhaul.c
@@ -813,7 +813,7 @@ static int __init longhaul_cpu_init(struct cpufreq_policy *policy)
 			memcpy(eblcr, samuel2_eblcr, sizeof(samuel2_eblcr));
 			break;
 		case 1 ... 15:
-			longhaul_version = TYPE_LONGHAUL_V1;
+			longhaul_version = TYPE_LONGHAUL_V2;
 			if (c->x86_mask < 8) {
 				cpu_model = CPU_SAMUEL2;
 				cpuname = "C3 'Samuel 2' [C5B]";


---------------------------------------------------------------
Zobacz jak pracuje sie na wysokosciach.
Kliknij >>> http://link.interia.pl/f2384


^ permalink raw reply related	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2009-11-03 19:33 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-10-24 15:25 [PATCH] longhaul: select Longhaul version 2 for capable CPUs Krzysztof Helt
2009-10-25  3:28 ` Dave Jones
2009-10-25 17:55   ` Rafał Bilski
2009-10-25 18:45   ` [PATCH] powernow-k6: set transition latency value so ondemand governor can be used Krzysztof Helt
2009-10-26  6:41     ` Ingo Molnar
2009-10-31 10:03   ` Krzysztof Helt
2009-11-03 19:51   ` [PATCH] longhaul: select Longhaul version 2 for capable CPUs Krzysztof Helt

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