]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/xmon: drop the nobt option from xmon plus minor fixes
authorGuilherme G. Piccoli <gpiccoli@linux.vnet.ibm.com>
Wed, 22 Mar 2017 19:27:50 +0000 (16:27 -0300)
committerMichael Ellerman <mpe@ellerman.id.au>
Mon, 27 Mar 2017 23:52:01 +0000 (10:52 +1100)
commit27d4bbcd9effe40125f47c386fbc3fa06fce04c8
treede252cee71669a9efe95689153e25226d57d3cb0
parente96e0c95a1ec10e96820b9d15ac8612a0300ecc6
powerpc/xmon: drop the nobt option from xmon plus minor fixes

The xmon parameter nobt was added long time ago, by commit 7addbd22f98d
("[POWERPC] print backtrace when entering xmon"). The problem that time
was that during a crash in a machine with USB keyboard, xmon wouldn't
respond to commands from the keyboard, so printing the backtrace wouldn't
be possible.

Idea then was to show automatically the backtrace on xmon crash for the
first time it's invoked (if it recovers, next time xmon won't show
backtrace automatically). The nobt parameter was added _only_ to prevent
this automatic trace show. Seems long time ago USB keyboards didn't work
that well!

We don't need this parameter anymore, the feature of auto showing the
backtrace is interesting (imagine a case of auto-reboot script),
so this patch extends the functionality, by always showing the backtrace
automatically when xmon is invoked; it removes the nobt parameter too.

Also, this patch fixes __initdata placement on xmon_early and replaces
__initcall() with modern device_initcall() on sysrq handler.

Signed-off-by: Guilherme G. Piccoli <gpiccoli@linux.vnet.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/xmon/xmon.c