Duration of mdelay and udelay depends on MPU frequency in SMP

Santosh Shilimkar santosh.shilimkar at ti.com
Thu May 12 02:42:32 EDT 2011


On 5/5/2011 12:23 PM, Saquib wrote:
> Hi All,
>
> Can anyone please help me to understand and fix this issue?
>
> When CPU frequency is "1008MHz", duration of delay was close to
> theoretical value, however, when "300MHz", it was close to about 4 times
> the theoretical value.
>
> I tested it on OMAP4(SMP) blaze board.
 >
It's a well known problem if the udelay() is based of global lpj.
You can read more here [1]

Regards
Santosh
[1] http://eeek.borgchat.net/lists/arm-kernel/msg120702.html





More information about the linux-arm-kernel mailing list