]> git.karo-electronics.de Git - karo-tx-linux.git/commit
powerpc: Disable relocation on exceptions when kexecing
authorIan Munsie <imunsie@au1.ibm.com>
Thu, 8 Nov 2012 05:40:28 +0000 (16:40 +1100)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Thu, 15 Nov 2012 04:08:08 +0000 (15:08 +1100)
commitcedddd812a79a4fda3885a15711aee3de78c4a24
tree7a9a3dbf97109a6259b655eed87794410c007d86
parentfc8effa4e46fb7bd8a3c5e293efc56b74a54b7a5
powerpc: Disable relocation on exceptions when kexecing

Since we don't know if they new kernel we are kexecing into has been
built to support relocation on exceptions, we disable them before we
kexec.

We do NOT disable them if we are execing a kdump kernel, because we
want to change as little state as possible and it is likely that we are
execing ourselves and will be able to handle them anyway.

Signed-off-by: Ian Munsie <imunsie@au1.ibm.com>
Signed-off-by: Michael Neuling <mikey@neuling.org>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
arch/powerpc/platforms/pseries/setup.c