patch-2.4.20 linux-2.4.20/include/asm-mips64/delay.h
Next file: linux-2.4.20/include/asm-mips64/dma.h
Previous file: linux-2.4.20/include/asm-mips64/cpu.h
Back to the patch index
Back to the overall index
- Lines: 20
- Date:
Thu Nov 28 15:53:15 2002
- Orig file:
linux-2.4.19/include/asm-mips64/delay.h
- Orig date:
Wed Jul 4 11:50:39 2001
diff -urN linux-2.4.19/include/asm-mips64/delay.h linux-2.4.20/include/asm-mips64/delay.h
@@ -11,6 +11,7 @@
#define _ASM_DELAY_H
#include <linux/config.h>
+#include <asm/param.h>
extern unsigned long loops_per_jiffy;
@@ -40,7 +41,11 @@
{
unsigned long lo;
+#if (HZ == 100)
usecs *= 0x00068db8bac710cbUL; /* 2**64 / (1000000 / HZ) */
+#elif (HZ == 128)
+ usecs *= 0x0008637bd05af6c6UL; /* 2**64 / (1000000 / HZ) */
+#endif
__asm__("dmultu\t%2,%3"
:"=h" (usecs), "=l" (lo)
:"r" (usecs),"r" (lpj));
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)