powerpc/xmon: Disable tracing when entering xmon
authorBreno Leitao <leitao@debian.org>
Wed, 2 Aug 2017 20:14:06 +0000 (17:14 -0300)
committerMichael Ellerman <mpe@ellerman.id.au>
Mon, 14 Aug 2017 11:57:57 +0000 (21:57 +1000)
commited49f7fd6438dcc8c93fa7d1d7d815e47c7115dd
tree477dccd9cca27428742ad443607a552cc128dde6
parent4125d012ff9dafe6624197d8dbd237d0916b3c35
powerpc/xmon: Disable tracing when entering xmon

If tracing is enabled and you get into xmon, the tracing buffer
continues to be updated, causing possible loss of data and unnecessary
tracing information coming from xmon functions.

This patch simple disables tracing when entering xmon, and re-enables it
if the kernel is resumed (with 'x').

Signed-off-by: Breno Leitao <leitao@debian.org>
Acked-by: Naveen N. Rao <naveen.n.rao@linux.vnet.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/xmon/xmon.c