Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
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
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment