summaryrefslogtreecommitdiffstats
path: root/kernel/arch/arc/include/asm/delay.h
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/arch/arc/include/asm/delay.h')
-rw-r--r--kernel/arch/arc/include/asm/delay.h9
1 files changed, 4 insertions, 5 deletions
diff --git a/kernel/arch/arc/include/asm/delay.h b/kernel/arch/arc/include/asm/delay.h
index 43de30256..08e7e2a16 100644
--- a/kernel/arch/arc/include/asm/delay.h
+++ b/kernel/arch/arc/include/asm/delay.h
@@ -22,11 +22,10 @@
static inline void __delay(unsigned long loops)
{
__asm__ __volatile__(
- "1: sub.f %0, %0, 1 \n"
- " jpnz 1b \n"
- : "+r"(loops)
- :
- : "cc");
+ " lp 1f \n"
+ " nop \n"
+ "1: \n"
+ : "+l"(loops));
}
extern void __bad_udelay(void);