Re: [PATCH 0/24] make atomic_read() behave consistently across all architectures
From: Stefan Richter <stefanr@s5r6.in-berlin.de>
Date: 2007-08-15 10:35:46
Also in:
linux-arch, lkml
From: Stefan Richter <stefanr@s5r6.in-berlin.de>
Date: 2007-08-15 10:35:46
Also in:
linux-arch, lkml
Satyam Sharma wrote:
[ BTW, why do we want the compiler to not optimize atomic_read()'s in the first place? Atomic ops guarantee atomicity, which has nothing to do with "volatility" -- users that expect "volatility" from atomic ops are the ones who must be fixed instead, IMHO. ]
LDD3 says on page 125: "The following operations are defined for the type [atomic_t] and are guaranteed to be atomic with respect to all processors of an SMP computer." Doesn't "atomic WRT all processors" require volatility? -- Stefan Richter -=====-=-=== =--- -==== http://arcgraph.de/sr/