1 C Z6.0+pooncelock+poonceLock+pombonce
6 * This litmus test demonstrates how smp_mb__after_spinlock() may be
7 * used to ensure that accesses in different critical sections for a
8 * given lock running on different CPUs are nevertheless seen in order
9 * by CPUs not holding that lock.
14 P0(int *x, int *y, spinlock_t *mylock)
22 P1(int *y, int *z, spinlock_t *mylock)
27 smp_mb__after_spinlock();
42 exists (1:r0=1 /\ z=2 /\ 2:r1=0)