From mboxrd@z Thu Jan 1 00:00:00 1970 From: Benoit Monin Date: Tue, 10 Mar 2009 15:20:51 +0100 (CET) Subject: [U-Boot] [PATCH] ppc: Increase precision of ticks2usec Message-ID: <27653688.82966.1236694851843.JavaMail.www@wwinf8219> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de > De : "Wolfgang Denk" > > Dear Benoit Monin, > > In message <9454366.19868.1236182927234.JavaMail.www@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.