xtensa: use "m" constraint instead of "a" in cmpxchg.h assembly
authorMax Filippov <jcmvbkbc@gmail.com>
Wed, 16 Oct 2019 07:49:54 +0000 (00:49 -0700)
committerMax Filippov <jcmvbkbc@gmail.com>
Tue, 26 Nov 2019 19:33:39 +0000 (11:33 -0800)
commitcf3b3baa712517c4972339b150f79fa88099e5db
treeee83ac25f2c59acb2e850e53eff5c876de5c7b53
parent812e708a4c2d29664a009805671d98cbe7c756b1
xtensa: use "m" constraint instead of "a" in cmpxchg.h assembly

Use "m" constraint instead of "r" for the address, as "m" allows
compiler to access adjacent locations using base + offset, while "r"
requires updating the base register every time.

Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
arch/xtensa/include/asm/cmpxchg.h