Hi Wayne
Possibly a slight misunderstanding - cpu_khz along with all the other symbols exported by the kernel should be listed in System.map (symbols exported by a loaded module will be in /proc/ksyms as I understand the kernel). Simply declaring cpu_khz as extern should be sufficient within a kernel module.
As allways with linux, there is more than one way of doing things. If writes to an unused IO address is sufficient to do what is required, perhaps software loops are best avoided.
On Monday 23 Sep 2002 2:07 am, Wayne Stallwood wrote:
How about rather than getting the cpu_khz from the system map, using the Bogomips value, Isn't the kernel already aware of this (I thought it used bogomips for some other timing)