lkml.org 
[lkml]   [2008]   [May]   [4]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [PATCH 24/56] microblaze_v2: time support
From
Date

> +static inline void udelay(unsigned long usec)
> +{
> + unsigned long long tmp = usec;
> + unsigned long loops = (tmp * 4295 * HZ * loops_per_jiffy) >> 32;
> + __delay(loops);
> +}

Let's hope like hell the CPU has HW multipler and shifter for this
one! :)

> +++ b/include/asm-microblaze/timex.h
> @@ -0,0 +1,20 @@
> +
> +#define CLOCK_TICK_RATE 1000 /* Timer input freq. */

What's this? Is it used anywhere?





\
 
 \ /
  Last update: 2008-05-05 04:23    [W:0.318 / U:1.592 seconds]
©2003-2017 Jasper Spaans. hosted at Digital OceanAdvertise on this site