6 * This litmus test demonstrates that the old "roach motel" approach
7 * to locking, where code can be freely moved into critical sections,
8 * cannot be used in the Linux kernel.
16 P0(int *x, atomic_t *y, spinlock_t *lck)
21 r2 = atomic_inc_return(y);
26 P1(int *x, atomic_t *y, spinlock_t *lck)
35 r2 = atomic_inc_return(y);
39 locations [x;0:r2;1:r0;1:r1;1:r2]
40 filter (1:r0=0 /\ 1:r1=1)