Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
linux-gen: atomic: improve lock-based atomic min and max ops
Implement the lock based variants of the atomic min and max operations using the ATOMIC_OP macro in a similar way as done in the other lock based atomics. This avoids taking the spinlock two or more times in one min or max operation. Signed-off-by: Janne Peltonen <[email protected]> Reviewed-by: Matias Elo <[email protected]>
- Loading branch information