On Sat, Aug 11, 2007 at 01:07:39PM +0200, Petter Reinholdtsen wrote: > > [Wouter Verhelst] > > Except that a PowerPC processor (as found in Gustavo's ibook) simply > > doesn't *have* C states. On my PowerBook G4, I noticed that when I > > started running this crude hack[0]... > > > > ------ > > #!/bin/bash > > > > modprobe cpufreq_userspace > > echo $$ > /var/run/mycpufreqd > > echo userspace > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor > > I suspect you will get almost the same behavior by using this hack and > leaving it to the kernel to scale it: > > #!/bin/bash > > modprobe cpufreq_userspace > echo $$ > /var/run/mycpufreqd > echo ondemand > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor > > It will jump to the highest frequency when the load is high, and drop > to the lowest frequency when there is less load.
Except that the kernel refuses to do this on PowerPC, since the 'ondemand' governor wants a CPU to switch speed so ridiculously quickly. Been there, tried that. Anyway, the point wasn't to demonstrate how to do processor speed scaling; rather, the point was to demonstrate that what happens to be correct for i386 and family isn't necessarily correct for everything else. -- <Lo-lan-do> Home is where you have to wash the dishes. -- #debian-devel, Freenode, 2004-09-22 -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]