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