[PATCH] arm64: cmpwait: Clear event register before arming exclusive monitor

Catalin Marinas catalin.marinas at arm.com
Wed May 16 04:22:09 PDT 2018


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 <will.deacon at arm.com>

Queued for 4.18. Thanks.

-- 
Catalin



More information about the linux-arm-kernel mailing list