]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commitdiff
ARC: Don't use "+l" inline asm constraint
authorVineet Gupta <vgupta@synopsys.com>
Thu, 24 Nov 2016 01:43:17 +0000 (17:43 -0800)
committerLuis Henriques <luis.henriques@canonical.com>
Tue, 10 Jan 2017 17:42:00 +0000 (17:42 +0000)
BugLink: http://bugs.launchpad.net/bugs/1650604
commit 3c7c7a2fc8811bc7097479f69acf2527693d7562 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>
arch/arc/include/asm/delay.h

index 08e7e2a16ac176a597ceb21c3b0f399b6ad98ea6..a36e8601114d2ca2970f257f9f8d7e5c03ec08a2 100644 (file)
 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);