[ltp] CPU Speed T40p
Brad Langhorst
linux-thinkpad@linux-thinkpad.org
Sat, 02 Apr 2005 11:39:25 -0500
On Fri, 2005-04-01 at 13:30 -0500, morpheus wrote:
> On Apr 1, 2005 at 10:50 AM, Brad Langhorst wrote:
> >echo 'performance'
> >> /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
> >
> >then to go back to on demand do
> >
> >echo 'ondemand' > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
> >
> Echoing directly to these files can be somewhat dangerous. First you should make sure that governors are available by doing:
> # cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_available_governors
i disagree...
if you echo something unknown the code will just ignore it.
list_for_each_entry(t, &cpufreq_governor_list,
governor_list) {
if (!
strnicmp(str_governor,t->name,CPUFREQ_NAME_LEN)) {
*governor = t;
up(&cpufreq_governor_sem);
return 0;
}
}
>
> Also, a "nicer" way to do this is by sending signals to cpuspeed (if that's the daemon you use) as described in my other post.
You don't need a cpu control daemon if you use the ondemand governor -
that governor takes care changing the speen internally with lower
latency that a userspace daemon.
brad