diff options
Diffstat (limited to 'include/asm-cris/arch-v32/delay.h')
-rw-r--r-- | include/asm-cris/arch-v32/delay.h | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/include/asm-cris/arch-v32/delay.h b/include/asm-cris/arch-v32/delay.h deleted file mode 100644 index e9fda03810a9..000000000000 --- a/include/asm-cris/arch-v32/delay.h +++ /dev/null | |||
@@ -1,28 +0,0 @@ | |||
1 | #ifndef _ASM_CRIS_ARCH_DELAY_H | ||
2 | #define _ASM_CRIS_ARCH_DELAY_H | ||
3 | |||
4 | extern void cris_delay10ns(u32 n10ns); | ||
5 | #define udelay(u) cris_delay10ns((u)*100) | ||
6 | #define ndelay(n) cris_delay10ns(((n)+9)/10) | ||
7 | |||
8 | /* | ||
9 | * Not used anymore for udelay or ndelay. Referenced by | ||
10 | * e.g. init/calibrate.c. All other references are likely bugs; | ||
11 | * should be replaced by mdelay, udelay or ndelay. | ||
12 | */ | ||
13 | |||
14 | static inline void | ||
15 | __delay(int loops) | ||
16 | { | ||
17 | __asm__ __volatile__ ( | ||
18 | "move.d %0, $r9\n\t" | ||
19 | "beq 2f\n\t" | ||
20 | "subq 1, $r9\n\t" | ||
21 | "1:\n\t" | ||
22 | "bne 1b\n\t" | ||
23 | "subq 1, $r9\n" | ||
24 | "2:" | ||
25 | : : "g" (loops) : "r9"); | ||
26 | } | ||
27 | |||
28 | #endif /* _ASM_CRIS_ARCH_DELAY_H */ | ||