]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit18a64bb2956a38720343f7e6be5acbb63a5bcf7a
tree33dd1e559d6e6d6d1a4f37877a57591051db24ad
parent0a30f0ae7b91f4b8d2f114dc582d20a92e75ba08
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