On Sunday 10 August 2003 19:07, George Staikos wrote: > On Sunday 10 August 2003 08:37, Volker Krause wrote: > Some of that code was already in that file! cpufreq support was added > many months ago. See has_cpufreq() and cpu_frequency(). We now parse the > cpufreq file at least twice. cpu_frequency() actually returns a string > with the current cpu frequency, the maximum frequency, etc. I don't see > what the new code gains except for support for other cpufreq methods while > duplicating an existing one, and losing the actual frequency (from cpuinfo) > support. The main advantage is the write support, i.e. the new code allows you to change the current scaling policy. And since it uses the existing [get|set] _system_performance() interface, it can be triggered by e.g. a low battery event etc. without any further work. I know about the exsiting code, but it is only usable for informational purposes. I will see how I can reduce the code duplication though. regards Volker