> Is there a clean way of computing the processor clock frequency in the
> 2.4 Kernel. Actually i have a 2P system and am able to compute it by
> using rdtsc calls to all processors ..... i was wondering if there is
> any cleaner approach that can be followed ....
> thanks a lot
You don't need to compute it, Linux will compute it at boot.
Just read the file /proc/cpuinfo.
It will contain one section per CPU, but I have not yet seen
a system on which the CPUs where not identical.
Trying to compute the clockspeed by using rdtsc is really
not a good idea in userspace, first of all you can get
preempted, and second you need to know the time very exact.
And getting exact times under Linux using for example the
gettimeofday call will actually do so by using the rdtsc
call. So trying to compute it at best you will get the value
already computed by the kernel, and even if you think so you
are not actually measuring anything.