summaryrefslogtreecommitdiffstats
path: root/arch/powerpc/include/asm/archrandom.h
diff options
context:
space:
mode:
authorOliver O'Halloran <oohall@gmail.com>2017-07-06 10:46:43 +0200
committerMichael Ellerman <mpe@ellerman.id.au>2017-07-11 04:53:53 +0200
commit2400fd822f467cb4c886c879d8ad99feac9cf319 (patch)
treedc297ddb52b2d7226da656e1d8a3d445985d9ce0 /arch/powerpc/include/asm/archrandom.h
parentpowerpc/powernv: Fix local TLB flush for boot and MCE on POWER9 (diff)
downloadlinux-2400fd822f467cb4c886c879d8ad99feac9cf319.tar.xz
linux-2400fd822f467cb4c886c879d8ad99feac9cf319.zip
powerpc/asm: Mark cr0 as clobbered in mftb()
The workaround for the CELL timebase bug does not correctly mark cr0 as being clobbered. This means GCC doesn't know that the asm block changes cr0 and might leave the result of an unrelated comparison in cr0 across the block, which we then trash, leading to basically random behaviour. Fixes: 859deea949c3 ("[POWERPC] Cell timebase bug workaround") Cc: stable@vger.kernel.org # v2.6.19+ Signed-off-by: Oliver O'Halloran <oohall@gmail.com> [mpe: Tweak change log and flag for stable] Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Diffstat (limited to 'arch/powerpc/include/asm/archrandom.h')
0 files changed, 0 insertions, 0 deletions