aboutsummaryrefslogtreecommitdiff
path: root/tools/memory-model/litmus-tests/LB+unlocklockonceonce+poacquireonce.litmus
AgeCommit message (Collapse)AuthorFilesLines
2021-11-30tools/memory-model: litmus: Add two tests for unlock(A)+lock(B) orderingGravatar Boqun Feng 1-0/+35
The memory model has been updated to provide a stronger ordering guarantee for unlock(A)+lock(B) on the same CPU/thread. Therefore add two litmus tests describing this new guarantee, these tests are simple yet can clearly show the usage of the new guarantee, also they can serve as the self tests for the modification in the model. Co-developed-by: Alan Stern <stern@rowland.harvard.edu> Signed-off-by: Alan Stern <stern@rowland.harvard.edu> Signed-off-by: Boqun Feng <boqun.feng@gmail.com> Acked-by: Peter Zijlstra (Intel) <peterz@infradead.org> Signed-off-by: Paul E. McKenney <paulmck@kernel.org>