Best way to determine tb_ticks_per_jiffy inside todc_calibrate_decr()

Daniel Ann ktdann at gmail.com
Tue Apr 12 13:55:53 EST 2005


On Apr 12, 2005 3:39 AM, Mark A. Greer <mgreer at mvista.com> wrote:
> Because the internally kept time in ppc linux is based on the
> decrementer counter and, according to the manual for the 8245, the
> decrementer counter is decremented once every four sys_logic_clk
> cycles.  Therefore, you need to divide by 4.

Gotcha. Thanks ^^

-- 
Daniel



More information about the Linuxppc-embedded mailing list