how to get cpu_khz?

David Fries (dfries@mail.win.org)
Mon, 17 Sep 2001 11:43:15 -0500


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/