diff options
author | Catalin Marinas <catalin.marinas@arm.com> | 2008-11-10 09:14:11 -0500 |
---|---|---|
committer | Catalin Marinas <catalin.marinas@arm.com> | 2008-11-10 09:14:11 -0500 |
commit | 8553cb67d2318db327071018fc81084cbabccc46 (patch) | |
tree | f2db64a188cbf2cce745720bf3d279daa2768609 /arch/arm/mm/proc-v7.S | |
parent | 73b63efaac7352c9e2bf1570fac98fd44a99f8f9 (diff) |
Modern processors may need to drain the WB before WFI
Since WFI may cause the processor to enter a low-power mode, data may
still be in the write buffer. This patch adds a DSB (or DWB) to the
cpu_(v6|v7)_do_idle functions before the WFI.
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
Diffstat (limited to 'arch/arm/mm/proc-v7.S')
-rw-r--r-- | arch/arm/mm/proc-v7.S | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/arm/mm/proc-v7.S b/arch/arm/mm/proc-v7.S index 721b7d53bfd8..0e11d9716a7d 100644 --- a/arch/arm/mm/proc-v7.S +++ b/arch/arm/mm/proc-v7.S | |||
@@ -63,6 +63,7 @@ ENDPROC(cpu_v7_reset) | |||
63 | * IRQs are already disabled. | 63 | * IRQs are already disabled. |
64 | */ | 64 | */ |
65 | ENTRY(cpu_v7_do_idle) | 65 | ENTRY(cpu_v7_do_idle) |
66 | dsb @ WFI may enter a low-power mode | ||
66 | wfi | 67 | wfi |
67 | mov pc, lr | 68 | mov pc, lr |
68 | ENDPROC(cpu_v7_do_idle) | 69 | ENDPROC(cpu_v7_do_idle) |