linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Marcos Souza <marcos.souza.org@gmail.com>
To: Borislav Petkov <bp@alien8.de>,
	Marcos Souza <marcos.souza.org@gmail.com>,
	linux-kernel@vger.kernel.org
Subject: Re: Get the min and max frequency of a processor
Date: Fri, 31 Aug 2012 06:52:46 -0300	[thread overview]
Message-ID: <CAH0vN5J0_3B2e_dmLk1yaKfCde79egkG-s7THrKtEwzcLnmm5Q@mail.gmail.com> (raw)
In-Reply-To: <20120831083727.GA2903@liondog.tnic>

Hi Borislav,

2012/8/31 Borislav Petkov <bp@alien8.de>:
> 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"

  reply	other threads:[~2012-08-31  9:52 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 [this message]
2012-08-31 12:26     ` Borislav Petkov
2012-09-01 20:26       ` Marcos Souza

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=CAH0vN5J0_3B2e_dmLk1yaKfCde79egkG-s7THrKtEwzcLnmm5Q@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).