>-----Original Message-----
>From: Mike Frysinger [mailto:[email protected]] 
>Sent: Thursday, January 21, 2010 3:42 PM
>To: [email protected]
>Cc: [email protected]
>Subject: Re: [Linux-kernel-commits] [8207] 
>trunk/arch/blackfin/include/asm/delay.h: task [#5359], 
>Blackfin arch implement ndelay()
>
>On Thu, Jan 21, 2010 at 02:20,  <[email protected]> wrote:
>> Modified: trunk/arch/blackfin/include/asm/delay.h (8206 => 8207)
>>
>> @@ -36,4 +36,12 @@
>>      __delay((((usecs * HZSCALE) >> 11) * (loops_per_jiffy 
>>> 11)) >> 6);
>>  }
>>
>> +static inline void ndelay(unsigned long nsecs)
>> +{
>> +    extern unsigned long loops_per_jiffy;
>> +    __delay(((((1 * HZSCALE) >> 11) * (loops_per_jiffy >> 
>11)) >> 6) * nsecs /
>> 1000);
>
>please unify udelay and ndelay instead of copying & pasting
Then a macro for (((usecs * HZSCALE) >> 11) * (loops_per_jiffy >>> 11))
>> 6 ? 

>-mike
>
_______________________________________________
Linux-kernel-commits mailing list
[email protected]
https://blackfin.uclinux.org/mailman/listinfo/linux-kernel-commits

Reply via email to