powerpc: Add "memory" attribute for mfmsr()
authorTiejun Chen <tiejun.chen@windriver.com>
Wed, 11 Jul 2012 04:22:46 +0000 (14:22 +1000)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Wed, 11 Jul 2012 05:25:45 +0000 (15:25 +1000)
commitb416c9a10baae6a177b4f9ee858b8d309542fbef
treeb7e0ce85a57e83e19fccf8ce686ec4b41b00d2ec
parentfd5a42980e1cf327b7240adf5e7b51ea41c23437
powerpc: Add "memory" attribute for mfmsr()

Add "memory" attribute in inline assembly language as a compiler
barrier to make sure 4.6.x GCC don't reorder mfmsr().

Signed-off-by: Tiejun Chen <tiejun.chen@windriver.com>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
CC: stable@vger.kernel.org
arch/powerpc/include/asm/reg.h