[ltp] cpu MHz & TP-T30 & FC3

morpheus linux-thinkpad@linux-thinkpad.org
Fri, 14 Jan 2005 15:26:29 -0500


> killall doesn't do partial string match - so no such problem exists..
> And its a useful interface if you still want to use cpuseed daemon for
> other reasons.
Yes, my bad.  However, I still believe that killall is a dangerous
command to use in a shell script since you can't be sure you won't kill
other processes (with the same name, for example).

> I guess one could switchoff cpuspeed and access
> /sys/devices/system/cpu/cpu0/cpufreq directly if the requirements are
> minimal.
Why would you switch off cpuspeed?  You can access all the files
in /sys/devices/system/cpu/cpu0/cpufreq while cpuspeed is running and
all your changes take effect immediately.  In fact, with cpuspeed off,
setting /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor is
meaningless.
The steps I described previously to echo to these files should be
performed while LEAVING cpuspeed ON.
-m