From 6258d51aab8d398c03b15c5ce4c9eeca6f168ed4 Mon Sep 17 00:00:00 2001 From: Peter De Schrijver Date: Thu, 14 Feb 2013 12:41:59 +0200 Subject: ARM: tegra: add "memory" to clobber list The inline asm needs "memory" in its clobber list to prevent gcc from caching the mcr read too agressively. Bug 1207116 Change-Id: Ia93e8115b9bd8bf0539e7b7d55ffeda2efc0e7e6 Signed-off-by: Peter De Schrijver Reviewed-on: http://git-master/r/200751 Reviewed-by: Antti Miettinen Reviewed-by: Bo Yan GVS: Gerrit_Virtual_Submit Reviewed-by: Juha Tukkinen --- arch/arm/mach-tegra/pm.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'arch/arm') diff --git a/arch/arm/mach-tegra/pm.h b/arch/arm/mach-tegra/pm.h index bffefa3be6e5..fafcf967c6c8 100644 --- a/arch/arm/mach-tegra/pm.h +++ b/arch/arm/mach-tegra/pm.h @@ -159,7 +159,7 @@ static inline unsigned int is_lp_cluster(void) "ubfx %0, %0, #8, #4" : "=r" (reg) : - : "cc"); + : "cc","memory"); return reg ; /* 0 == G, 1 == LP*/ #endif } -- cgit v1.2.3