diff options
Diffstat (limited to 'arch/xtensa/include/asm/delay.h')
| -rw-r--r-- | arch/xtensa/include/asm/delay.h | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/arch/xtensa/include/asm/delay.h b/arch/xtensa/include/asm/delay.h index 58c0a4fd4003..61fc5faeb46c 100644 --- a/arch/xtensa/include/asm/delay.h +++ b/arch/xtensa/include/asm/delay.h | |||
| @@ -19,9 +19,9 @@ extern unsigned long loops_per_jiffy; | |||
| 19 | 19 | ||
| 20 | static inline void __delay(unsigned long loops) | 20 | static inline void __delay(unsigned long loops) |
| 21 | { | 21 | { |
| 22 | /* 2 cycles per loop. */ | 22 | /* 2 cycles per loop. */ |
| 23 | __asm__ __volatile__ ("1: addi %0, %0, -2; bgeui %0, 2, 1b" | 23 | __asm__ __volatile__ ("1: addi %0, %0, -2; bgeui %0, 2, 1b" |
| 24 | : "=r" (loops) : "0" (loops)); | 24 | : "=r" (loops) : "0" (loops)); |
| 25 | } | 25 | } |
| 26 | 26 | ||
| 27 | static __inline__ u32 xtensa_get_ccount(void) | 27 | static __inline__ u32 xtensa_get_ccount(void) |
| @@ -46,4 +46,3 @@ static __inline__ void udelay (unsigned long usecs) | |||
| 46 | } | 46 | } |
| 47 | 47 | ||
| 48 | #endif | 48 | #endif |
| 49 | |||
