X-Git-Url: https://git.kernel.dk/?a=blobdiff_plain;f=Documentation%2Fmemory-barriers.txt;h=08329cb857edc9946449ff7aa9251513daefb50e;hb=791a9a666d1afe2603bcb2c6a4852d684e879252;hp=d2b0a8d81258b43cc1bc97350b9fa4f713101b58;hpb=f9799ad21b5e4a41633f54dfab407ebb37abbd8a;p=linux-2.6-block.git diff --git a/Documentation/memory-barriers.txt b/Documentation/memory-barriers.txt index d2b0a8d81258..08329cb857ed 100644 --- a/Documentation/memory-barriers.txt +++ b/Documentation/memory-barriers.txt @@ -768,7 +768,7 @@ equal to zero, in which case the compiler is within its rights to transform the above code into the following: q = READ_ONCE(a); - WRITE_ONCE(b, 1); + WRITE_ONCE(b, 2); do_something_else(); Given this transformation, the CPU is not required to respect the ordering