Skip to content

Commit

Permalink
ARC: Don't use "+l" inline asm constraint
Browse files Browse the repository at this point in the history
BugLink: http://bugs.launchpad.net/bugs/1650604

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 <vgupta@synopsys.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
Signed-off-by: Luis Henriques <luis.henriques@canonical.com>
  • Loading branch information
vineetgarc authored and Luis Henriques committed Jan 10, 2017
1 parent a8a5626 commit 6f3a172
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 6f3a172

Please sign in to comment.