diff options
Diffstat (limited to 'arch/arm/mach-at91/pm.c')
-rw-r--r-- | arch/arm/mach-at91/pm.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/arch/arm/mach-at91/pm.c b/arch/arm/mach-at91/pm.c index 87a31baf1cb3..dafbacc25eb1 100644 --- a/arch/arm/mach-at91/pm.c +++ b/arch/arm/mach-at91/pm.c | |||
@@ -261,8 +261,13 @@ static int at91_pm_enter(suspend_state_t state) | |||
261 | * For ARM 926 based chips, this requirement is weaker | 261 | * For ARM 926 based chips, this requirement is weaker |
262 | * as at91sam9 can access a RAM in self-refresh mode. | 262 | * as at91sam9 can access a RAM in self-refresh mode. |
263 | */ | 263 | */ |
264 | asm("b 1f; .align 5; 1:"); | 264 | asm volatile ( "mov r0, #0\n\t" |
265 | asm("mcr p15, 0, r0, c7, c10, 4"); /* drain write buffer */ | 265 | "b 1f\n\t" |
266 | ".align 5\n\t" | ||
267 | "1: mcr p15, 0, r0, c7, c10, 4\n\t" | ||
268 | : /* no output */ | ||
269 | : /* no input */ | ||
270 | : "r0"); | ||
266 | saved_lpr = sdram_selfrefresh_enable(); | 271 | saved_lpr = sdram_selfrefresh_enable(); |
267 | wait_for_interrupt_enable(); | 272 | wait_for_interrupt_enable(); |
268 | sdram_selfrefresh_disable(saved_lpr); | 273 | sdram_selfrefresh_disable(saved_lpr); |