arch/tile: Fix atomic_read() definition to use ACCESS_ONCE
authorChris Metcalf <cmetcalf@tilera.com>
Fri, 25 Feb 2011 13:46:38 +0000 (08:46 -0500)
committerChris Metcalf <cmetcalf@tilera.com>
Fri, 25 Feb 2011 13:46:38 +0000 (08:46 -0500)
commitd356b595e5a95c0c2305ec0a7d1cdb3e26f57716
tree8256f0460d6ff5f50d57590a53c10336b66cb241
parentdeb4b003eb33e63af23cd887ded04ad77ab3dcbb
arch/tile: Fix atomic_read() definition to use ACCESS_ONCE

This adds the volatile cast which forces the compiler to emit the load.
Suggested by Peter Zijlstra <peterz@infradead.org>.

Signed-off-by: Chris Metcalf <cmetcalf@tilera.com>
arch/tile/include/asm/atomic.h