get_cycles()

Kevin Diggs kevdig at hypersurf.com
Sun Apr 27 12:39:07 EST 2008


David Miller wrote:
> From: Kevin Diggs <kevdig at hypersurf.com>
> Date: Sat, 26 Apr 2008 00:54:11 -0700
> 
> 
>>	Anyone know how to turn get_cycles() into an actual time in a module? 
>>ppc_tb_freq does not seem to be exported?
> 
> 
> You should really be using ktime_t and associated interfaces.
> 
This looks pretty cool ... but I don't want to create a dependency on
hrtimer.

So ... How expensive would it be to export ppc_tb_freq? Or add a
get_cycles_tb() function?

kevin




More information about the Linuxppc-dev mailing list