Skip to content
Commit b4f9209b authored by Will Deacon's avatar Will Deacon
Browse files

arm64: Avoid masking "old" for LSE cmpxchg() implementation



The CAS instructions implicitly access only the relevant bits of the "old"
argument, so there is no need for explicit masking via type-casting as
there is in the LL/SC implementation.

Move the casting into the LL/SC code and remove it altogether for the LSE
implementation.

Signed-off-by: default avatarWill Deacon <will.deacon@arm.com>
parent 5ef3fe4c
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment