lkml.org 
[lkml]   [2006]   [Feb]   [12]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: Getting cpu frequency
On Sat, Feb 11, 2006 at 11:16:48PM +0100, Nico Golde wrote:
> * Dave Jones <davej@redhat.com> [2006-02-11 23:15]:
> > On Sat, Feb 11, 2006 at 10:42:07PM +0100, Nico Golde wrote:
> > > Hallo Dave,
> > >
> > > * Dave Jones <davej@redhat.com> [2006-02-11 22:38]:
> > > > On Sat, Feb 11, 2006 at 09:47:34PM +0100, Nico Golde wrote:
> > > > > Hi,
> > > > > at the moment I try to get the current cpu frequency
> > > > > P.S. Please CC me, I am not subsribed, thanks
> > > >
> > > > Are you trying to do this from a userspace program ?
> > > > If so, this isn't going to work.
> > >
> > > Yes I am.
> >
> > Read it from sysfs or /proc/cpuinfo.
>
> Thats exactly what I dont wanted to do and thought its
> possible without reading a file. So it seems to be not,
> thank you will use sysfs to get the information.
> Regards Nico

there's still libcpufreq from cpufrequtils if you wish some kind of
abstraction over reading a file.

--
mattia
:wq!
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2006-02-12 09:48    [W:0.081 / U:0.472 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site