MN10300: ttySM: Use memory barriers correctly in circular buffer logic
authorDavid Howells <dhowells@redhat.com>
Wed, 12 Dec 2012 15:36:37 +0000 (15:36 +0000)
committerDavid Howells <dhowells@redhat.com>
Wed, 12 Dec 2012 15:46:14 +0000 (15:46 +0000)
commitc98c406eb2c518c7c5bc922fafa1f9fdcb7b76f4
treea7b5199a61df167bdcc34eb36af97d73bb6b3d0d
parent541880d9a2c7871f6370071d55aa6662d329c51e
MN10300: ttySM: Use memory barriers correctly in circular buffer logic

Use memory barriers correctly in the circular buffer logic used in the driver,
as documented in Documentation/circular-buffers.txt.

Signed-off-by: David Howells <dhowells@redhat.com>
Signed-off-by: Mark Salter <msalter@redhat.com>
arch/mn10300/kernel/mn10300-serial.c