|
@@ -40,13 +40,13 @@ EXPORT_SYMBOL(__delay);
|
|
|
|
|
|
inline void __const_udelay(unsigned long xloops)
|
|
inline void __const_udelay(unsigned long xloops)
|
|
{
|
|
{
|
|
- __delay((xloops * HZ * cpu_data[raw_smp_processor_id()].loops_per_jiffy) >> 32);
|
|
|
|
|
|
+ __delay(((xloops * HZ * cpu_data[raw_smp_processor_id()].loops_per_jiffy) >> 32) + 1);
|
|
}
|
|
}
|
|
EXPORT_SYMBOL(__const_udelay);
|
|
EXPORT_SYMBOL(__const_udelay);
|
|
|
|
|
|
void __udelay(unsigned long usecs)
|
|
void __udelay(unsigned long usecs)
|
|
{
|
|
{
|
|
- __const_udelay(usecs * 0x000010c6); /* 2**32 / 1000000 */
|
|
|
|
|
|
+ __const_udelay(usecs * 0x000010c7); /* 2**32 / 1000000 (rounded up) */
|
|
}
|
|
}
|
|
EXPORT_SYMBOL(__udelay);
|
|
EXPORT_SYMBOL(__udelay);
|
|
|
|
|