linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Hans-Frieder Vogt <hfvogt@gmx.net>
To: andrewm@uow.edu.au, linux-kernel@vger.kernel.org
Subject: [PATCH 2.6.10-mm2] reenable cpufreq for PowerNow-K8 using BIOS tables
Date: Tue, 11 Jan 2005 02:26:49 +0100	[thread overview]
Message-ID: <200501110226.49542.hfvogt@gmx.net> (raw)

With 2.6.10-mm2 (or even with -mm1) some structures in struct psb_s have been 
renamed in powernow-k8.h, but the renaming has not been done properly for all 
occurences in powernow-k8.c.
This prevents cpufreq from accepting the BIOS PST-tables.

The following patch corrects this by renaming the incorrectly named variable 
in powernow-k8.c, following the definition in the powernow-k8.h header file.

Andrew, please include it in your next -mm patch.

Signed-off-by: Hans-Frieder Vogt <hfvogt@arcor.de>

--- linux-2.6.10-mm2/arch/i386/kernel/cpu/cpufreq/powernow-k8.c 2005-01-05 
23:23:07.697728328 -0800
+++ b/arch/i386/kernel/cpu/cpufreq/powernow-k8.c 2005-01-11 01:40:59.633643410 
+0100
@@ -637,8 +637,8 @@ static int find_psb_table(struct powerno
   dprintk("isochronous relief time: %d\n", data->irt);
   dprintk("maximum voltage step: %d - 0x%x\n", mvs, data->vidmvs);
 
-  dprintk("numpst: 0x%x\n", psb->numps);
-  cpst = psb->numps;
+  dprintk("numpst: 0x%x\n", psb->num_tables);
+  cpst = psb->num_tables;
   if ((psb->cpuid == 0x00000fc0) || (psb->cpuid == 0x00000fe0) ){
    thiscpuid = cpuid_eax(CPUID_PROCESSOR_SIGNATURE);
    if ((thiscpuid == 0x00000fc0) || (thiscpuid == 0x00000fe0) ) {

-- 
--
Hans-Frieder Vogt              e-mail: hfvogt <at> arcor .dot. de
                                          hfvogt <at> gmx .dot. net

                 reply	other threads:[~2005-01-11  1:32 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=200501110226.49542.hfvogt@gmx.net \
    --to=hfvogt@gmx.net \
    --cc=andrewm@uow.edu.au \
    --cc=linux-kernel@vger.kernel.org \
    /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;
as well as URLs for NNTP newsgroup(s).