]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/xmon: Don't signal we've entered until we're finished printing
authorMichael Ellerman <mpe@ellerman.id.au>
Mon, 23 Dec 2013 12:46:06 +0000 (23:46 +1100)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Tue, 11 Feb 2014 00:24:51 +0000 (11:24 +1100)
commite754dbd8beff14d9610aa6caaadf3a65809bacc8
tree8de313f2c772d2d62a8bdaeb3ed5c2aff0ea5253
parent618f60a8168493fa8b7f7ac137656ae171a6fa38
powerpc/xmon: Don't signal we've entered until we're finished printing

Currently we set our cpu's bit in cpus_in_xmon, and then we take the
output lock and print the exception information.

This can race with the master cpu entering the command loop and printing
the backtrace. The result is that the backtrace gets garbled with
another cpu's exception print out.

Fix it by delaying the set of cpus_in_xmon until we are finished
printing.

Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
arch/powerpc/xmon/xmon.c