xtensa: provide xchg for sizes 1 and 2
authorMax Filippov <jcmvbkbc@gmail.com>
Wed, 2 Jan 2019 03:29:07 +0000 (19:29 -0800)
committerMax Filippov <jcmvbkbc@gmail.com>
Thu, 7 Feb 2019 20:24:17 +0000 (12:24 -0800)
commitaf3d890b4303cfc9df4b785c852246d4c7013436
tree0e97307ac785debf6a6ef59494c7d5e9816d576d
parent74d69eaadd652de87dc3dd97303de83963524b54
xtensa: provide xchg for sizes 1 and 2

This is required for generic queued spinlocks, implement it.

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