]> asedeno.scripts.mit.edu Git - linux.git/commit
xtensa: use "m" constraint instead of "a" in atomic.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)
commit13e28135d6fb4906af9cd1d54f22172ad5e4a0dd
tree15f55af2a89232f646039e50d8d1739893532f5f
parent643d6976ff0b950fc6e5d65adfda497ba792b149
xtensa: use "m" constraint instead of "a" in atomic.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/atomic.h