xref: /kernel/linux/linux-5.10/tools/memory-model/litmus-tests/CoWW+poonceonce.litmus
  • Home
  • History
  • Annotate Annotate
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
  • only in /kernel/linux/linux-5.10/tools/memory-model/litmus-tests/
18c2ecf20Sopenharmony_ciC CoWW+poonceonce
28c2ecf20Sopenharmony_ci
38c2ecf20Sopenharmony_ci(*
48c2ecf20Sopenharmony_ci * Result: Never
58c2ecf20Sopenharmony_ci *
68c2ecf20Sopenharmony_ci * Test of write-write coherence, that is, whether or not two successive
78c2ecf20Sopenharmony_ci * writes to the same variable are ordered.
88c2ecf20Sopenharmony_ci *)
98c2ecf20Sopenharmony_ci
108c2ecf20Sopenharmony_ci{}
118c2ecf20Sopenharmony_ci
128c2ecf20Sopenharmony_ciP0(int *x)
138c2ecf20Sopenharmony_ci{
148c2ecf20Sopenharmony_ci	WRITE_ONCE(*x, 1);
158c2ecf20Sopenharmony_ci	WRITE_ONCE(*x, 2);
168c2ecf20Sopenharmony_ci}
178c2ecf20Sopenharmony_ci
188c2ecf20Sopenharmony_ciexists (x=1)
19

Indexes created Thu Nov 07 10:32:03 CST 2024