panic/reboot: allow specifying reboot_mode for panic only
authorAaro Koskinen <aaro.koskinen@nokia.com>
Tue, 14 May 2019 22:45:37 +0000 (15:45 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 15 May 2019 02:52:51 +0000 (19:52 -0700)
commitb287a25a7148a89d977c819c1f7d6584f875b682
tree33dd1e559d6e6d6d1a4f37877a57591051db24ad
parentc39ea0b9dd24bf1bf2baa5cdbfa1905f3065347b
panic/reboot: allow specifying reboot_mode for panic only

Allow specifying reboot_mode for panic only.  This is needed on systems
where ramoops is used to store panic logs, and user wants to use warm
reset to preserve those, while still having cold reset on normal
reboots.

Link: http://lkml.kernel.org/r/20190322004735.27702-1-aaro.koskinen@iki.fi
Signed-off-by: Aaro Koskinen <aaro.koskinen@nokia.com>
Reviewed-by: Kees Cook <keescook@chromium.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Documentation/admin-guide/kernel-parameters.txt
include/linux/reboot.h
kernel/panic.c
kernel/reboot.c