]> git.baikalelectronics.ru Git - kernel.git/commit
MN10300: atomic_read() should ensure it emits a load
authorDavid Howells <dhowells@redhat.com>
Mon, 14 Mar 2011 14:49:44 +0000 (14:49 +0000)
committerDavid Howells <dhowells@redhat.com>
Mon, 14 Mar 2011 14:51:25 +0000 (14:51 +0000)
commita014f788d948f54f21909c11e07ca3b5a10b2fe3
tree58e951a8a37b6ac4d854a7d501dd3b9ff5126e44
parent7ed6fcdc80c7c085ac2f07969c8b10ffdae01d1b
MN10300: atomic_read() should ensure it emits a load

atomic_read() needs to ensure that it emits a load (which it can do by using
ACCESS_ONCE()).

Reported-by: Peter Zijlstra <peterz@infradead.org>
Signed-off-by: David Howells <dhowells@redhat.com>
arch/mn10300/include/asm/atomic.h