[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: cpufreqd: different config file for kernel 2.4 and 2.6



On Fri, Oct 24, 2003 at 01:11:34PM +0200, Mattia Dongili wrote:
> Hi,
> 
> I'm packaging the new upstream version of cpufreqd (1.1-rc1) and I have
> a problem with the default configuration file to provide.
> 
> The story:
> 
> in kernel 2.4 CpuFreq interface (/proc/cpufreq) you can input
> frequencies as percent or Hz values
> 
> in kernel 2.6 (/sys/devices/system/cpu/cpu*/cpufreq/*) you can only use
> Hz values.
> 
> Now, if I provide percent based cpufreqd.conf it won't be 2.6
> compatible, but provinding a Hz based config file is meaningless for
> most systems.

So what is the problem? Make the 2.6 interface emulate the 2.4 kernel..
How?

parse /proc/cpuinfo
compute the new freq. based on % in the config file

It should not be that difficult.

- Adam

PS. Is CPU freq. even available on SMP systems?



Reply to: