]> git.hungrycats.org Git - linux/commitdiff
[CPUFREQ] Powernow-k7 latency timer needs to be in values of 10ns.
authorDave Jones <davej@redhat.com>
Thu, 18 Sep 2003 21:47:26 +0000 (22:47 +0100)
committerDave Jones <davej@hardwired.(none)>
Thu, 18 Sep 2003 21:47:26 +0000 (22:47 +0100)
We were 'slightly' off in our calculations. This increased settling
time might actually increase the stability of some setups.

arch/i386/kernel/cpu/cpufreq/powernow-k7.c

index 8ea5acafe47f2ceb649b700d2d35d6ca0dc1d293..df436835acbb8f525ec6f2498565476b2a26f6ab 100644 (file)
@@ -299,13 +299,14 @@ static int powernow_decode_bios (int maxfid, int startvid)
                        dprintk (" voltage regulator)\n");
 
                        latency = psb->settlingtime;
-                       if (latency < 10000) {
+                       if (latency < 100) {
                                printk (KERN_INFO PFX "BIOS set settling time to %d microseconds."
-                                               "Should be at least 10000. Correcting.\n", latency);
-                               latency = 10000;
+                                               "Should be at least 100. Correcting.\n", latency);
+                               latency = 100;
                        }
                        dprintk (KERN_INFO PFX "Settling Time: %d microseconds.\n", psb->settlingtime);
                        dprintk (KERN_INFO PFX "Has %d PST tables. (Only dumping ones relevant to this CPU).\n", psb->numpst);
+                       latency *= 100; /* SGTC needs to be in units of 10ns */
 
                        p += sizeof (struct psb_s);