Commit 75a98ed6 authored by Heiko Carstens's avatar Heiko Carstens
Browse files

s390/preempt: Use arch_try_cmpxchg() instead of __atomic_cmpxchg()



Use arch_try_cmpxchg() instead of __atomic_cmpxchg() in
preempt_count_set() to generate similar or better code,
depending in compiler features.

Reviewed-by: default avatarJuergen Christ <jchrist@linux.ibm.com>
Signed-off-by: default avatarHeiko Carstens <hca@linux.ibm.com>
parent 5ba865ad
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment