Skip to content
Snippets Groups Projects
Commit 02c503ff authored by Martin Schwidefsky's avatar Martin Schwidefsky
Browse files

s390/spinlock: use atomic primitives for spinlocks


Add a couple more __atomic_xxx function to atomic_ops.h and use them
to replace the compare-and-swap inlines in the spinlock code. This
changes the type of the lock value from unsigned int to int.

Signed-off-by: default avatarMartin Schwidefsky <schwidefsky@de.ibm.com>
parent df26c2e8
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment