]> git.baikalelectronics.ru Git - kernel.git/commit
kmsg_dump: add kmsg_dump() calls to the reboot, halt, poweroff and emergency_restart...
authorSeiji Aguchi <seiji.aguchi@hds.com>
Thu, 13 Jan 2011 00:59:30 +0000 (16:59 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 13 Jan 2011 16:03:07 +0000 (08:03 -0800)
commit253f682cfb9ba50993676a05db53cd5da4ea9f8d
treeb381c4c2005118f05ce8d2f3d363b73807c0eddf
parent59b814156e401c1f4a52c3dcb55fc7a871680567
kmsg_dump: add kmsg_dump() calls to the reboot, halt, poweroff and emergency_restart paths

We need to know the reason why system rebooted in support service.
However, we can't inform our customers of the reason because final
messages are lost on current Linux kernel.

This patch improves the situation above because the final messages are
saved by adding kmsg_dump() to reboot, halt, poweroff and
emergency_restart path.

Signed-off-by: Seiji Aguchi <seiji.aguchi@hds.com>
Cc: David Woodhouse <dwmw2@infradead.org>
Cc: Marco Stornelli <marco.stornelli@gmail.com>
Reviewed-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
Reviewed-by: KOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
include/linux/kmsg_dump.h
kernel/printk.c
kernel/sys.c