Re: Get the min and max frequency of a processor

From: Marcos Souza
Date: Fri Aug 31 2012 - 05:52:55 EST


Hi Borislav,

2012/8/31 Borislav Petkov <bp@xxxxxxxxx>:
> On Thu, Aug 30, 2012 at 02:48:33PM -0300, Marcos Souza wrote:
>> Hi people,
>>
>> I'm changing an application to get the min and max frequency of a
>> processor. The device is using cpufreq, and it will show the user the
>> min and max frequency that we can overclock.
>>
>> There is a way to get these values, instead of reading the /sys files,
>> or is this the solution?
>
> What's wrong with using:
>
> /sys/devices/system/cpu/cpu<N>/cpufreq/scaling_available_frequencies
>
> ?

Nothing is wrong with access /sys, but I thought there was another
way, like an API or something else.

I use your solution Borislav, thanks!

> --
> Regards/Gruss,
> Boris.



--
Att,

Marcos Paulo de Souza
Acadêmico de Ciencia da Computação - FURB - SC
"Uma vida sem desafios é uma vida sem razão"
"A life without challenges, is a non reason life"
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/