[U-Boot] [PATCH] ppc: Increase precision of ticks2usec

Benoit Monin benoit.monin at laposte.net
Tue Mar 10 15:20:51 CET 2009


> De : "Wolfgang Denk"
> 
> Dear Benoit Monin,
> 
> In message <9454366.19868.1236182927234.JavaMail.www at wwinf8202> you wrote:
> > 
> > The tick of some PowerPC cpu is running at high frequency and
> > it can be used to get microsecond precision from it. Make use
> > of div64 to achieve this precision in ticks2usec.
> 
> Which problem are you trying to fix?
> 
> Where exactly do we need very high accuracy?
> 
> What is the overhead of using do_div() versus the old, simple code?
> 
Well, that was more some icing on the cake for CONFIG_PRINT_TIME,
so you can discard this patch.

> Best regards,
> 
> Wolfgang Denk
> 
Sincerely,
Benoît.
--


 Créez votre adresse électronique prenom.nom at laposte.net 
 1 Go d'espace de stockage, anti-spam et anti-virus intégrés.


More information about the U-Boot mailing list