shell: kernel: do a cold reboot by standard

do a cold reboot by default if no option is provided
for `kernel reboot`, instead of requiring to
type `kernel reboot cold`.

Signed-off-by: Fin Maaß <f.maass@vogl-electronic.com>
This commit is contained in:
Fin Maaß 2024-08-29 17:20:21 +02:00 committed by Mahesh Mahadevan
commit fae1fe8c1f

View file

@ -673,7 +673,7 @@ SHELL_STATIC_SUBCMD_SET_CREATE(sub_kernel_reboot,
SHELL_STATIC_SUBCMD_SET_CREATE(sub_kernel,
SHELL_CMD(cycles, NULL, "Kernel cycles.", cmd_kernel_cycles),
#if defined(CONFIG_REBOOT)
SHELL_CMD(reboot, &sub_kernel_reboot, "Reboot.", NULL),
SHELL_CMD(reboot, &sub_kernel_reboot, "Reboot.", cmd_kernel_reboot_cold),
#endif
SHELL_CMD(thread, &sub_kernel_thread, "Kernel threads.", NULL),
#if defined(CONFIG_SYS_HEAP_RUNTIME_STATS) && (K_HEAP_MEM_POOL_SIZE > 0)