On Thursday 12 June 2003 16:06, Benjamin Herrenschmidt wrote: > Can you change #undef DEBUG_FREQ to #define DEBUG_FREQ in pmac_cpufreq.c > ? > > That will force the driver to recalc the bogomips on speed change. Once > done, check that the recalculated bogomips changes to about 600 at > low speed and back to about 800 when running at full speed. Now this is strange. While I am compiling the new kernel with gcc-3.3 (gcc-3.2 throws an internal error since the latest upgrade) I checked whether the BogoMips change. This is a compilation where DEBUG_FREQ was _not_ set. However, see yourself:
tomcat:~# cat /proc/cpufreq minimum CPU frequency - maximum CPU frequency - policy CPU 0 400000 kHz (100 %) - 400000 kHz (100 %) - performance tomcat:~# cat /proc/cpuinfo cpu : 7410, altivec supported temperature : 19-21 C (uncalibrated) clock : 400MHz revision : 17.3 (pvr 800c 1103) bogomips : 797.90 machine : PowerBook3,2 motherboard : PowerBook3,2 MacRISC2 MacRISC Power Macintosh detected as : 71 (PowerBook Titanium) pmac flags : 0000000b L2 cache : 1024K unified memory : 384MB pmac-generation : NewWorld tomcat:~# echo -n "0%0%0%powersave" > /proc/cpufreq tomcat:~# cat /proc/cpufreq minimum CPU frequency - maximum CPU frequency - policy CPU 0 300000 kHz ( 75 %) - 300000 kHz ( 75 %) - powersave tomcat:~# cat /proc/cpuinfo cpu : 7410, altivec supported temperature : 21-25 C (uncalibrated) clock : 300MHz revision : 17.3 (pvr 800c 1103) bogomips : 598.42 machine : PowerBook3,2 motherboard : PowerBook3,2 MacRISC2 MacRISC Power Macintosh detected as : 71 (PowerBook Titanium) pmac flags : 0000000b L2 cache : 1024K unified memory : 384MB pmac-generation : NewWorld The bogomips number seems to get recalculated even without the DEBUG_FREQ set. Salut Mark P.S. in Documentation/cpufreq the ppc platform does not evet get mentioned. -- Krisztian Mark Szentes produktivIT - Open-Source Solution Provider Siebenbrunnengasse 55/7 A-1050 Wien