Files
qemu/docs
Emilio G. Cota 56ebe02203 docs/atomics: update atomic_read/set comparison with Linux
Recently Linux did a mass conversion of its atomic_read/set calls
so that they at least are READ/WRITE_ONCE. See Linux's commit
62e8a325 ("atomic, arch: Audit atomic_{read,set}()"). It seems though
that their documentation hasn't been updated to reflect this.

The appended updates our documentation to reflect the change, which
means there is effectively no difference between our atomic_read/set
and the current Linux implementation.

While at it, fix the statement that a barrier is implied by
atomic_read/set, which is incorrect. Volatile/atomic semantics prevent
transformations pertaining the variable they apply to; this, however,
has no effect on surrounding statements like barriers do. For more
details on this, see:
  https://gcc.gnu.org/onlinedocs/gcc/Volatiles.html

Signed-off-by: Emilio G. Cota <cota@braap.org>
Message-Id: <1464120374-8950-2-git-send-email-cota@braap.org>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
2016-05-29 09:11:11 +02:00
..
2016-05-18 15:04:27 +03:00
2015-11-17 18:35:56 +08:00
2014-06-10 07:44:01 +02:00
2016-05-26 11:12:05 -06:00
2016-04-08 00:07:43 +02:00
2016-03-11 16:59:12 +02:00
2016-05-18 15:04:27 +03:00
2013-04-03 11:39:43 +02:00
2013-03-22 13:25:07 +01:00