projects
/
GitHub
/
LineageOS
/
G12
/
android_kernel_amlogic_linux-4.9.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e5517c2
)
ARC: Don't use "+l" inline asm constraint
author
Vineet Gupta
<vgupta@synopsys.com>
Thu, 24 Nov 2016 01:43:17 +0000
(17:43 -0800)
committer
Vineet Gupta
<vgupta@synopsys.com>
Mon, 28 Nov 2016 17:17:32 +0000
(09:17 -0800)
Apparenty this is coming in the way of gcc fix which inhibits the usage
of LP_COUNT as a gpr.
Cc: stable@vger.kernel.org
Signed-off-by: Vineet Gupta <vgupta@synopsys.com>
arch/arc/include/asm/delay.h
patch
|
blob
|
blame
|
history
diff --git
a/arch/arc/include/asm/delay.h
b/arch/arc/include/asm/delay.h
index 08e7e2a16ac176a597ceb21c3b0f399b6ad98ea6..a36e8601114d2ca2970f257f9f8d7e5c03ec08a2 100644
(file)
--- a/
arch/arc/include/asm/delay.h
+++ b/
arch/arc/include/asm/delay.h
@@
-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);