Re: Getting cpu frequency

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hallo Dave,

* Dave Jones <[email protected]> [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 via 
>  > using the cpufreq_get() function defined in linux/cpufreq.h.
>  > Can someone point me to the headers I have to include to let 
>  > this work because just doing #include <linux/cpufreq.h> 
>  > results in a bunch of errors:
>  > [...] 
>  > In file included from /usr/include/linux/cpu.h:22,
>  >                  from cpu.c:2:
>  > /usr/include/linux/sysdev.h:31: error: field 'drivers' has incomplete type
>  > /usr/include/linux/sysdev.h:35: error: syntax error before 'pm_message_t'
>  > /usr/include/linux/sysdev.h:37: error: field 'kset' has incomplete type
>  > /usr/include/linux/sysdev.h:50: error: field 'entry' has incomplete type
>  > /usr/include/linux/sysdev.h:54: error: syntax error before 'pm_message_t'
>  > /usr/include/linux/sysdev.h:69: error: syntax error before 'u32'
>  > /usr/include/linux/sysdev.h:72: error: syntax error before '}' token
>  > /usr/include/linux/sysdev.h:79: error: field 'attr' has incomplete type
>  > /usr/include/linux/sysdev.h:80: error: syntax error before 'ssize_
>  > [...] 
>  > Using 2.6.14.
>  > Regards Nico
>  > 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.
Regards Nico
-- 
Nico Golde - JAB: [email protected] | GPG: 0x73647CFF
http://www.ngolde.de | http://www.muttng.org | http://grml.org
Forget about that mouse with 3/4/5 buttons -
gimme a keyboard with 103/104/105 keys!

Attachment: pgp1O4VH4yzP8.pgp
Description: PGP signature


[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux