Verified Commit 2a723ca8 authored by Sebastian Krzyszkowiak's avatar Sebastian Krzyszkowiak
Browse files

librem5_defconfig: Set CONFIG_PANIC_TIMEOUT to reboot immediately

The default behavior on kernel panic is to hang indefinitely,
which isn't great for a battery powered device where investigating
a panic after it happened may not even be feasible. Therefore,
set up the kernel so it reboots on panic.

For debugging, this can be disabled at runtime by calling
`sysctl kernel.panic=0`. A delay before rebooting can be set
by replacing `0` with a number of seconds.
parent da7abf88
......@@ -994,6 +994,7 @@ CONFIG_PRINTK_TIME=y
CONFIG_DYNAMIC_DEBUG=y
CONFIG_MAGIC_SYSRQ=y
CONFIG_DEBUG_KERNEL=y
CONFIG_PANIC_TIMEOUT=-1
CONFIG_DETECT_HUNG_TASK=y
# CONFIG_SCHED_DEBUG is not set
# CONFIG_DEBUG_PREEMPT is not set
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment