Google luky.org euqset.org

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH 2.6.10-mm2] reenable cpufreq for PowerNow-K8 using BIOS tables


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@xxxxxxxx>

--- 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
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


$B$3$N>pJs$,$"$J$?$NC5$7$F$$?$b$N$+$I$&$+A*Br$7$F$/$@$5$!#(B
yes/$B$^$5$K$3$l$@!*(B   no/$B0c$&$J$!(B   part/$B0lIt8+$D$+$C$?(B   try/$B$3$l$G;n$7$F$_$k(B

$B$"$J$?$,C5$7$F$$?>pJs$O$I$N$h$&$J$3$H$+!"$4<+M3$K5-F~2<$5$!#FC$K!V$^$5$K$3$l$@!*!W$H8@$&>l9g$O5-F~$r$*4j$$7$^$9!#(B
$BNc(B:$B!VJ#?t$N%^%7%s$+$i(BCATV$B7PM3$G(Bipmasquerade$B$rMxMQ$7$F(BWeb$B$r;2>H$7$?$>l9g$N@_Dj$K$D$$F!W(B