diff options
| author | tsutsui <tsutsui@NetBSD.org> | 2005-10-30 07:53:16 +0000 |
|---|---|---|
| committer | tsutsui <tsutsui@NetBSD.org> | 2005-10-30 07:53:16 +0000 |
| commit | bdf356473e8efc8d2dfbcb85822a63f7be231f6c (patch) | |
| tree | 4ed06f43c6df2cfc5025d028e70017bb3947d245 /sys/arch/arc/include | |
| parent | bfa9ff2e952873d9a99183d31b078e6c321490c2 (diff) | |
Use new delay(9) for DELAY(9).
Diffstat (limited to 'sys/arch/arc/include')
| -rw-r--r-- | sys/arch/arc/include/param.h | 18 |
1 files changed, 3 insertions, 15 deletions
diff --git a/sys/arch/arc/include/param.h b/sys/arch/arc/include/param.h index 6011646223f..6d905ca18e9 100644 --- a/sys/arch/arc/include/param.h +++ b/sys/arch/arc/include/param.h @@ -1,4 +1,4 @@ -/* $NetBSD: param.h,v 1.21 2005/10/30 04:34:03 tsutsui Exp $ */ +/* $NetBSD: param.h,v 1.22 2005/10/30 07:53:16 tsutsui Exp $ */ /* $OpenBSD: param.h,v 1.9 1997/04/30 09:54:15 niklas Exp $ */ /* @@ -154,21 +154,9 @@ #ifndef _LOCORE extern int cpuspeed; -extern void delay(unsigned int n); +void delay(unsigned int n); -#if 0 /* XXX: should use mips_mcclock.c */ -#define DELAY(n) do { \ - int N = cpuspeed * (n); while (--N > 0); \ -} while (/*CONSTCOND*/ 0) -#else -/* - * Delay is based on an assumtion that each time in the loop - * takes 3 clocks. Three is for branch and subtract in the delay slot. - */ -#define DELAY(n) do { \ - int N = cpuspeed * (n); while ((N -= 3) > 0); \ -} while (/*CONSTCOND*/ 0) -#endif +#define DELAY(n) delay(n) #include <machine/intr.h> |
