]> 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)
commit6e4b8639aa702cbbe424852645fb6e752f320160
tree33dd1e559d6e6d6d1a4f37877a57591051db24ad
parentc6a071695e352cc85c693be1afacebf2251f30cc
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