Modern processors may need to drain the WB before WFI
authorCatalin Marinas <catalin.marinas@arm.com>
Mon, 10 Nov 2008 14:14:11 +0000 (14:14 +0000)
committerCatalin Marinas <catalin.marinas@arm.com>
Mon, 10 Nov 2008 14:14:11 +0000 (14:14 +0000)
commit8553cb67d2318db327071018fc81084cbabccc46
treef2db64a188cbf2cce745720bf3d279daa2768609
parent73b63efaac7352c9e2bf1570fac98fd44a99f8f9
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>
arch/arm/mm/proc-v6.S
arch/arm/mm/proc-v7.S