Re: [PATCH] Alter sparc32 __ndelay/__udelay delay calculations

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: Mark Fortescue <mark@xxxxxxxxxxxxxxxxxx>
Date: Sat, 21 Jul 2007 18:49:46 +0100 (BST)

> __ndelay and __udelay have not been delaying >= specified time.
> The problem with __ndelay has been tacked down to the rounding of the
> multiplier constant. By changing this, delays > app 18us are correctly
> calculated.
> The problem with __udelay has also been tracked down to rounding issues.
> Changing the multiplier constant (to match that used in sparc64) corrects
> for large delays and adding in a rounding constant corrects for trunctaion
> errors in the claculations for short delays.
> Many short delays will return without looping. This is not an error as there
> is the fixed delay of doing all the maths to calculate the loop count.
> 
> Signed-off-by: Mark Fortescue <mark@xxxxxxxxxxxxxxxxxx>

Thanks for investigating this Mark, I'll merge this in after
I look over it a bit.
-
To unsubscribe from this list: send the line "unsubscribe sparclinux" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Kernel Development]     [DCCP]     [Linux ARM Development]     [Linux]     [Photo]     [Yosemite Help]     [Linux ARM Kernel]     [Linux SCSI]     [Linux x86_64]     [Linux Hams]

  Powered by Linux