Skip to content

Commit

Permalink
ARC: Don't use "+l" inline asm constraint
Browse files Browse the repository at this point in the history
commit 3c7c7a2 upstream.

Apparenty this is coming in the way of gcc fix which inhibits the usage
of LP_COUNT as a gpr.

Signed-off-by: Vineet Gupta <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
  • Loading branch information
vineetgarc authored and gregkh committed Dec 8, 2016
1 parent 87c6c6e commit 5b2ed6e
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions arch/arc/include/asm/delay.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,11 @@
static inline void __delay(unsigned long loops)
{
__asm__ __volatile__(
" lp 1f \n"
" nop \n"
"1: \n"
: "+l"(loops));
" mov lp_count, %0 \n"
" lp 1f \n"
" nop \n"
"1: \n"
: : "r"(loops));
}

extern void __bad_udelay(void);
Expand Down

0 comments on commit 5b2ed6e

Please sign in to comment.