From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752128Ab2HaJws (ORCPT ); Fri, 31 Aug 2012 05:52:48 -0400 Received: from mail-yx0-f174.google.com ([209.85.213.174]:34252 "EHLO mail-yx0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751957Ab2HaJwr convert rfc822-to-8bit (ORCPT ); Fri, 31 Aug 2012 05:52:47 -0400 MIME-Version: 1.0 In-Reply-To: <20120831083727.GA2903@liondog.tnic> References: <20120831083727.GA2903@liondog.tnic> Date: Fri, 31 Aug 2012 06:52:46 -0300 Message-ID: Subject: Re: Get the min and max frequency of a processor From: Marcos Souza To: Borislav Petkov , Marcos Souza , linux-kernel@vger.kernel.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8BIT Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Borislav, 2012/8/31 Borislav Petkov : > 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/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"