panic: dump registers on panic_on_warn
Currently we print stack and registers for ordinary warnings but we do not
for panic_on_warn which looks as oversight - panic() will reboot the
machine but won't print registers.
This moves printing of registers and modules earlier.
This does not move the stack dumping as panic() dumps it.
Signed-off-by: Alexey Kardashevskiy <firstname.lastname@example.org>
Signed-off-by: Andrew Morton <email@example.com>
Reviewed-by: Kees Cook <firstname.lastname@example.org>
Cc: Douglas Anderson <email@example.com>
Cc: Ingo Molnar <firstname.lastname@example.org>
Cc: Kees Cook <email@example.com>
Cc: Rafael Aquini <firstname.lastname@example.org>
Cc: Thomas Gleixner <email@example.com>
Cc: Will Deacon <firstname.lastname@example.org>
Cc: Nicholas Piggin <email@example.com>
Signed-off-by: Linus Torvalds <firstname.lastname@example.org>
1 file changed