[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <CAH0vN5KS1UpxFHx0L_9btY_P0TKnNst74uBqZo+CGt4qWOdYsQ@mail.gmail.com>
Date: Sat, 1 Sep 2012 17:26:58 -0300
From: Marcos Souza <marcos.souza.org@...il.com>
To: Borislav Petkov <bp@...en8.de>, linux-kernel@...r.kernel.org
Subject: Re: Get the min and max frequency of a processor
2012/8/31 Borislav Petkov <bp@...en8.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@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists