[MIPS] RTLX: Harden against compiler reordering and optimization.
authorRalf Baechle <ralf@linux-mips.org>
Thu, 15 Mar 2007 17:10:16 +0000 (17:10 +0000)
committerRalf Baechle <ralf@linux-mips.org>
Sat, 17 Mar 2007 01:03:27 +0000 (01:03 +0000)
RTLX communication is based on lock-free shared memory buffers.  It
happened to be working by luck so far but relies on the optimizer doing
certain optimizations but no reordering.

Fixed by inserting proper barriers in rtlx_read and rtlx_write, and careful
pointer dereferencing.

Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/kernel/rtlx.c

Simple merge