Red Hat Kernel - getting cpu clock info in kernel

This is Interesting: Free IT Magazines  
Home > Archive > Red Hat Kernel > June 2004 > getting cpu clock info in kernel





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author getting cpu clock info in kernel
Nox104

2004-06-29, 5:57 pm

Hi all,

I am trying to get the value of cpu clock (Mhz) in my kernel module i.e.,
without reading /proc/cpuinfo. I see that there is an extern variable
cpu_khz in /asm-i386/timex.h, but unfortunately it is not exported. Any help
would be really appreciated! I am using 2.4.18.3 kernel.

Thanks!
Adarsh


Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com