Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit dbd98701 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "ARM64: spinlock: Move the dsb+sev after the stlxr has succeeded"

parents 2a06ffb1 0286237c
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -206,11 +206,11 @@ static inline void arch_read_unlock(arch_rwlock_t *rw)
	"1:	ldxr	%w0, %2\n"
	"	sub	%w0, %w0, #1\n"
	"	stlxr	%w1, %w0, %2\n"
	"	cbnz	%w1, 1b\n"
#ifdef CONFIG_ARM64_SEV_IN_LOCK_UNLOCK
	"	dsb sy\n"
	"	sev\n"
#endif
	"	cbnz	%w1, 1b\n"
	: "=&r" (tmp), "=&r" (tmp2), "+Q" (rw->lock)
	:
	: "memory");