cpufreq Archive on lore.kernel.org
 help / color / mirror / Atom feed
* Acer 1304xc powernowk7 patch & kernel 2.6.8-rc3-mm1
@ 2004-08-09 17:47 Marijan Peh
  0 siblings, 0 replies; only message in thread
From: Marijan Peh @ 2004-08-09 17:47 UTC (permalink / raw)
  To: cpufreq_mail_list

How to implement this patch in kernel 2.6.8-rc3-mm1.

[aspire_patch  text/x-diff (2606 bytes)]
--- a/arch/i386/kernel/powernow-k7.c    2003-06-30 13:40:16.000000000 +0200
+++ b/arch/i386/kernel/powernow-k7.c    2003-06-30 13:41:19.000000000 +0200
@@ -167,6 +167,29 @@
        unsigned int j, speed;
        u8 fid, vid;

+/* hardcoded modifies for mobile Athlon xp 1800+ on Acer Aspire 1300
with buggy bios */+
+       pst = kmalloc(10*sizeof(unsigned char), GFP_KERNEL);
+       if (!pst)
+               return -ENOMEM;
+
+       *pst++ = 4;  /*  666 MHz */
+       *pst++ = 19; /*   1.20 V */
+       *pst++ = 6;  /*  800 Mhz */
+       *pst++ = 19; /*   1.20 V */
+       *pst++ = 10; /* 1066 Mhz */
+       *pst++ = 19; /*   1.20 V */
+       *pst++ = 14; /* 1333 Mhz */
+       *pst++ = 11; /*   1.45 V */
+       *pst++ = 1;  /* 1533 Mhz */
+       *pst = 9;    /*   1.55 V */
+
+       pst -= 9;
+
+       fsb=133;
+
+/*************************************************/
+
        powernow_table = kmalloc((sizeof(struct cpufreq_frequency_table)
* (number_scales + 1)), GFP_KERNEL);    if (!powernow_table)
                return -ENOMEM;
@@ -187,7 +210,7 @@
 #endif
                }
 
-               dprintk (KERN_INFO PFX "   FID: 0x%x (%d.%dx [%dMHz])\t", fid,
+               dprintk (KERN_INFO PFX "   FID: 0x%x (%d.%dx [%dMHz])  ", fid,
                        fid_codes[fid] / 10, fid_codes[fid] % 10, speed);
 
                if (speed < minimum_speed)
@@ -328,9 +351,11 @@
                                if ((etuple == pst->cpuid) && (maxfid==pst->maxfid) &&
(startvid==pst->startvid))                              {
                                        dprintk (KERN_INFO PFX "PST:%d (@%p)\n", i,
pst);-                                  dprintk (KERN_INFO PFX " cpuid: 0x%x\t", pst->
cpuid);
-                                       dprintk ("fsb: %d\t", pst->fsbspeed);
-                                       dprintk ("maxFID: 0x%x\t", pst->maxfid);
+                                       dprintk (KERN_INFO PFX " cpuid: 0x%x  ", pst->
cpuid);
+                                       /* modified for mobile Athlon XP 1800+ */
+                                       dprintk ("fsb: %d  ", 133);
+                                       /***************************************/
+                                       dprintk ("maxFID: 0x%x  ", pst->maxfid);
                                        dprintk ("startvid: 0x%x\n", pst->startvid);
 
                                        fsb = pst->fsbspeed;
-- end --

I have no programming exp.
Patch was full functional in older cpufreq code.

Thnx

-- 
http://nymos.dyndns.org/

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

only message in thread, other threads:[~2004-08-09 17:47 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-08-09 17:47 Acer 1304xc powernowk7 patch & kernel 2.6.8-rc3-mm1 Marijan Peh

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