cpufreq Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Marijan Peh <marijan.peh@freenet.de>
To: cpufreq_mail_list <cpufreq@www.linux.org.uk>
Subject: Acer 1304xc powernowk7 patch & kernel 2.6.8-rc3-mm1
Date: Mon, 9 Aug 2004 19:47:39 +0200	[thread overview]
Message-ID: <20040809174739.GA22196@kanta> (raw)

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/

                 reply	other threads:[~2004-08-09 17:47 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20040809174739.GA22196@kanta \
    --to=marijan.peh@freenet.de \
    --cc=cpufreq@www.linux.org.uk \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox