[PATCH] x86_64: Make udelay more accurate
[linux-2.6.git] / arch / x86_64 / lib / delay.c
index 841bd738a189821c4046b85870d02f75ee4699e6..03c460cbdd1c0b516fcf3f262518994785bcafe6 100644 (file)
@@ -39,7 +39,7 @@ void __delay(unsigned long loops)
 
 inline void __const_udelay(unsigned long xloops)
 {
-       __delay(((xloops * cpu_data[raw_smp_processor_id()].loops_per_jiffy) >> 32) * HZ);
+       __delay((xloops * HZ * cpu_data[raw_smp_processor_id()].loops_per_jiffy) >> 32);
 }
 
 void __udelay(unsigned long usecs)