patch-2.1.75 linux/arch/i386/lib/delay.c
Next file: linux/arch/i386/mm/fault.c
Previous file: linux/arch/i386/kernel/traps.c
Back to the patch index
Back to the overall index
- Lines: 22
- Date:
Sun Dec 21 17:27:18 1997
- Orig file:
v2.1.74/linux/arch/i386/lib/delay.c
- Orig date:
Mon Dec 1 12:04:11 1997
diff -u --recursive --new-file v2.1.74/linux/arch/i386/lib/delay.c linux/arch/i386/lib/delay.c
@@ -15,12 +15,6 @@
#include <asm/smp.h>
#endif
-#ifdef __SMP__
-#define __udelay_val cpu_data[smp_processor_id()].udelay_val
-#else
-#define __udelay_val loops_per_sec
-#endif
-
void __delay(unsigned long loops)
{
__asm__ __volatile__(
@@ -34,7 +28,7 @@
{
__asm__("mull %0"
:"=d" (xloops)
- :"a" (xloops),"0" (__udelay_val)
+ :"a" (xloops),"0" (current_cpu_data.loops_per_sec)
:"ax");
__delay(xloops);
}
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov