]> git.karo-electronics.de Git - karo-tx-linux.git/commit
powerpc: Add "memory" attribute for mfmsr()
authorTiejun Chen <tiejun.chen@windriver.com>
Wed, 11 Jul 2012 04:22:46 +0000 (14:22 +1000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 9 Aug 2012 15:22:35 +0000 (08:22 -0700)
commitb78ea743c537868531ad05c161d2c6cb617c3ecc
tree272aef383862d36c394fc404193a1c8bd1c943cf
parent47f679f142db9df3006a342e9a0643495fa955a3
powerpc: Add "memory" attribute for mfmsr()

commit b416c9a10baae6a177b4f9ee858b8d309542fbef upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/powerpc/include/asm/reg.h