Skip to content
Snippets Groups Projects
Commit 889221c4 authored by Heiko Carstens's avatar Heiko Carstens
Browse files

s390/spinlock: Use flag output constraint for arch_cmpxchg_niai8()


Add a new variant of arch_cmpxchg_niai8() which makes use of the flag
output constraint, which allows the compiler to generate slightly better
code. Also rename arch_cmpxchg_niai8() to arch_try_cmpxchg_niai8() which
reflects the purpose of the function and makes it consistent with other
"try" variants.

Signed-off-by: default avatarHeiko Carstens <hca@linux.ibm.com>
parent 84ac9658
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment