From: Marcos Souza <marcos.souza.org@gmail.com>
To: Borislav Petkov <bp@alien8.de>, linux-kernel@vger.kernel.org
Subject: Re: Get the min and max frequency of a processor
Date: Sat, 1 Sep 2012 17:26:58 -0300 [thread overview]
Message-ID: <CAH0vN5KS1UpxFHx0L_9btY_P0TKnNst74uBqZo+CGt4qWOdYsQ@mail.gmail.com> (raw)
In-Reply-To: <20120831122616.GA4083@x1.osrc.amd.com>
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"
prev parent reply other threads:[~2012-09-01 20:34 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-08-30 17:48 Get the min and max frequency of a processor Marcos Souza
2012-08-31 8:37 ` Borislav Petkov
2012-08-31 9:52 ` Marcos Souza
2012-08-31 12:26 ` Borislav Petkov
2012-09-01 20:26 ` Marcos Souza [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CAH0vN5KS1UpxFHx0L_9btY_P0TKnNst74uBqZo+CGt4qWOdYsQ@mail.gmail.com \
--to=marcos.souza.org@gmail.com \
--cc=bp@alien8.de \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).