All of lore.kernel.org
 help / color / mirror / Atom feed
* [Patch] small cleanup for powernow-k7.c
@ 2005-01-20 20:38 Hendrik Muhs
  2005-01-21  1:57 ` Dave Jones
  0 siblings, 1 reply; 4+ messages in thread
From: Hendrik Muhs @ 2005-01-20 20:38 UTC (permalink / raw)
  To: davej; +Cc: cpufreq

[-- Attachment #1: Type: text/plain, Size: 998 bytes --]

Hi,

attached is a patch which fixes a wrong entry in the vid table and some 
comments.

It is broken down from my powernow-k7 patch to manual set multiplier/voltage 
(for Desktop mainboards which does not have  PST table in their BIOS 
("Another powernow-k7 patch for Desktop XP-M usage")).

A final question: 

Is something like this absolutly out of question for inclusion in mainline?
(yes I've read the archives and I have not found a final answer on this)

I see that this feature is not official supported by vendors and although I 
have implemented some mechanisms which should prevent serious CPU damage it 
can not (by design) completly safe (system may freeze on some setups).

On the other side their is demand for this feature (not only for me). I do not 
know what to do with it in the future. If the door for inclusion in mainline 
is closed I would consider make some kind of source package and 
forking/renaming the driver so that it can be build independent from kernel.

Hendrik

[-- Attachment #2: powernow-k7_smallcleanup.patch --]
[-- Type: text/x-diff, Size: 967 bytes --]

--- linux/arch/i386/kernel/cpu/cpufreq/powernow-k7.c.orig	2005-01-20 19:45:56.000000000 +0100
+++ linux/arch/i386/kernel/cpu/cpufreq/powernow-k7.c	2005-01-20 20:11:04.000000000 +0100
@@ -67,16 +67,20 @@
 #endif
 
 #ifdef CONFIG_CPU_FREQ_DEBUG
-/* divide by 1000 to get VID. */
+/* divide by 1000 to get VCore voltage in V. */
 static int mobile_vid_table[32] = {
     2000, 1950, 1900, 1850, 1800, 1750, 1700, 1650,
     1600, 1550, 1500, 1450, 1400, 1350, 1300, 0,
     1275, 1250, 1225, 1200, 1175, 1150, 1125, 1100,
-    1075, 1050, 1024, 1000, 975, 950, 925, 0,
+    1075, 1050, 1025, 1000, 975, 950, 925, 0,
 };
 #endif
 
-/* divide by 10 to get FID. */
+/* divide by 10 to get multiplier.
+ * 0x19 should maybe 220 not 225 (see CrystalCPUID), but as their are no CPU's 
+ * with this multiplier (and possibly never will be) it does not matter 
+ */
+
 static int fid_codes[32] = {
     110, 115, 120, 125, 50, 55, 60, 65,
     70, 75, 80, 85, 90, 95, 100, 105,

[-- Attachment #3: Type: text/plain, Size: 147 bytes --]

_______________________________________________
Cpufreq mailing list
Cpufreq@lists.linux.org.uk
http://lists.linux.org.uk/mailman/listinfo/cpufreq

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

end of thread, other threads:[~2005-01-26  8:03 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-01-20 20:38 [Patch] small cleanup for powernow-k7.c Hendrik Muhs
2005-01-21  1:57 ` Dave Jones
2005-01-25 20:47   ` [Patch] powernow-k7-manual was " Hendrik Muhs
2005-01-26  8:03     ` Jarkko Lavinen

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.