Thread (2 messages) 2 messages, 2 authors, 2018-05-16
DORMANTno replies

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

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
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help