Since udelay family is pseudo delay function simulated by loop instruction for n number of times, there are chances that compiler might optimize away the busy looping code with some compile time deterministic number of loops. In case of a variable, compiler may not have sufficient information for this optimization.
In anycase, one should use udelay() and what it does is its internal magic that should not effect users.
Thanks,
Rajat
On Wed, Oct 27, 2010 at 12:05 PM, J.H.Kim <frog1120@xxxxxxxxx> wrote:
Hi, everyone
What is the difference among udelay(), const_udelay() and __delay() ?
Thansk in advance.
Best Regards,
J.Hwan Kim
--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx
Please read the FAQ at http://kernelnewbies.org/FAQ