powerpc/kdump: Disable ftrace during kexec
authorAnton Blanchard <anton@samba.org>
Thu, 6 Jan 2011 18:00:36 +0000 (18:00 +0000)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Fri, 21 Jan 2011 03:08:36 +0000 (14:08 +1100)
commitac4414e4d3024a3c9ac5f54a734ac77dd7edfdb3
tree20bb68df2f97e912e266e5b930a99b0f28a4ab0f
parent158d5b5e3654938cca963eec82cd10af49cda17f
powerpc/kdump: Disable ftrace during kexec

We should disable ftrace during kexec, some of the tracers are very invasive
and we do not want them going off while doing the low level work of swapping
one kernel out for another. This mirrors what we do on x86.

Even though we cannot return from a kexec on powerpc (since we do not implement
CONFIG_KEXEC_JUMP), add the restore code in case we do one day.

Signed-off-by: Anton Blanchard <anton@samba.org>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
arch/powerpc/kernel/machine_kexec.c