lkml.org 
[lkml]   [2001]   [Sep]   [17]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
Subjecthow to get cpu_khz?
I'm using the TSC of the Pentium processors to get some precise timing
delays for writing to a eeprom (bit banging bus operations), and it
works just fine, but the cpu_khz variable isn't exported to a kernel
module, so I hardcoded in my module. It works fine for that one
system, but obviously I don't want to hard code it for the general
case. I guess I could write my own routine to figure out what the
cpu_khz is, but it is already done, so how do I get access to it?

--
+---------------------------------+
| David Fries |
| dfries@mail.win.org |
+---------------------------------+
-
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: 2005-03-22 13:03    [W:0.025 / U:2.048 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site