lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite for Android: free password hash cracker in your pocket
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAH0vN5J0_3B2e_dmLk1yaKfCde79egkG-s7THrKtEwzcLnmm5Q@mail.gmail.com>
Date:	Fri, 31 Aug 2012 06:52:46 -0300
From:	Marcos Souza <marcos.souza.org@...il.com>
To:	Borislav Petkov <bp@...en8.de>,
	Marcos Souza <marcos.souza.org@...il.com>,
	linux-kernel@...r.kernel.org
Subject: Re: Get the min and max frequency of a processor

Hi Borislav,

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

Powered by Openwall GNU/*/Linux Powered by OpenVZ