Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d356b595 authored by Chris Metcalf's avatar Chris Metcalf
Browse files

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: default avatarChris Metcalf <cmetcalf@tilera.com>
parent deb4b003
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -32,7 +32,7 @@
 */
static inline int atomic_read(const atomic_t *v)
{
       return v->counter;
	return ACCESS_ONCE(v->counter);
}

/**