[PATCH] ppc64: Turn runlatch on in exception entry
authorAnton Blanchard <anton@samba.org>
Fri, 8 Jul 2005 00:56:12 +0000 (17:56 -0700)
committerLinus Torvalds <torvalds@g5.osdl.org>
Fri, 8 Jul 2005 01:23:37 +0000 (18:23 -0700)
commit8dc4fd87f229414fc38648508aad7def2275fe81
tree4b9d330f855627807b4d7eab0b888bcb30403b32
parenta2f7a9ce2a5c3d21cc0eb37a03da603b44ba4b09
[PATCH] ppc64: Turn runlatch on in exception entry

Enable the runlatch at the start of each exception.  Unfortunately we are out
of space in the 0x300 handler, so I added it a bit later.

The SPR write is fairly expensive, perhaps we should cache the runlatch state
in the paca and avoid the write when possible.

We don't need to turn the runlatch off, we do that in the idle loop.  Better
to take the hit in the idle loop than for each exception exit.

Signed-off-by: Anton Blanchard <anton@samba.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
arch/ppc64/kernel/head.S
include/asm-ppc64/processor.h