get_cycles/get_tbl on 405

Benjamin Herrenschmidt benh at kernel.crashing.org
Fri Aug 24 19:52:56 EST 2001


>I wanted to do some quick time measurements of some things on a driver
>running of the 405GP and I eneded up using get_tbl(). It seems like
>get_cycles should be the more standard way to get a tick count but
>it seems to return 0. I don't get the __ftr_fixup stuff in timex.h
>so I am not sure what it is trying to do differently from get_tbl.

The __ftr_fixup in timex.h adds a reference to this code in the
feature fixup section. This allow the code that access the TB to
be nop'ed out on CPUs that don't implement it (601)

Ben.


** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/





More information about the Linuxppc-embedded mailing list