From: Ralf Baechle Date: Thu, 15 Mar 2007 17:10:16 +0000 (+0000) Subject: [MIPS] RTLX: Harden against compiler reordering and optimization. X-Git-Tag: v2.6.21-rc5~74^2~4 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=61dcc6f4d9ed5db71f4f0be9026bdd09f1a7dc06;p=pandora-kernel.git [MIPS] RTLX: Harden against compiler reordering and optimization. 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 --- Reading git-diff-tree failed