[PATCH] arm64: cmpwait: Clear event register before arming exclusive monitor
From: catalin.marinas@arm.com (Catalin Marinas)
Date: 2018-05-16 11:22:09
From: catalin.marinas@arm.com (Catalin Marinas)
Date: 2018-05-16 11:22:09
On Mon, Apr 30, 2018 at 01:56:32PM +0100, Will Deacon wrote:
When waiting for a cacheline to change state in cmpwait, we may immediately wake-up the first time around the outer loop if the event register was already set (for example, because of the event stream). Avoid these spurious wakeups by explicitly clearing the event register before loading the cacheline and setting the exclusive monitor. Signed-off-by: Will Deacon <redacted>
Queued for 4.18. Thanks. -- Catalin