lkml.org 
[lkml]   [2012]   [Sep]   [1]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
SubjectRe: Get the min and max frequency of a processor
From
2012/8/31 Borislav Petkov <bp@alien8.de>:
> On Fri, Aug 31, 2012 at 06:52:46AM -0300, Marcos Souza wrote:
>> Nothing is wrong with access /sys, but I thought there was another
>> way, like an API or something else.
>
> Ah, there's no API, AFAICT.
>
> Also, tools/power/cpupower/ uses sysfs too - you could reuse that
> code if you don't feel like writing it yourself. The function is
> cpufreq_get_hardware_limits()

I will take a look in the cpupower.

> Ok, technically, there is also a way to query the CPU's MSRs directly
> but this is a bit more involved than reading sysfs nodes.

My application don't need this complexity. I believe the /sys nodes
ould help me.

> HTH.
>
> --
> Regards/Gruss,
> Boris.

Thanks Borislav for showing to me all available choises to do this job!


--
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@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2012-09-01 22:41    [W:0.041 / U:0.464 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site