Re: [PATCH 0/24] make atomic_read() behave consistently across all architectures
From: Paul Mackerras <hidden>
Date: 2007-08-17 02:45:47
Also in:
linux-arch, lkml
From: Paul Mackerras <hidden>
Date: 2007-08-17 02:45:47
Also in:
linux-arch, lkml
Christoph Lameter writes:
No it does not have any volatile semantics. atomic_dec() can be reordered at will by the compiler within the current basic unit if you do not add a barrier.
Volatile doesn't mean it can't be reordered; volatile means the accesses can't be eliminated. Paul.