Skip to content

Commit

Permalink
kexec: Add kexec reboot string
Browse files Browse the repository at this point in the history
The purpose is to notify the kernel module for fast reboot.

Upstream a patch from the SONiC network operating system [1].

[1]: sonic-net/sonic-linux-kernel#46

Link: https://lkml.kernel.org/r/20210304124626.13927-1-pmenzel@molgen.mpg.de
Signed-off-by: Joe LeVeque <jolevequ@microsoft.com>
Signed-off-by: Paul Menzel <pmenzel@molgen.mpg.de>
Acked-by: Baoquan He <bhe@redhat.com>
Cc: Guohan Lu <lguohan@gmail.com>
Cc: Joe LeVeque <jolevequ@microsoft.com>
Cc: Paul Menzel <pmenzel@molgen.mpg.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
  • Loading branch information
jleveque authored and torvalds committed May 7, 2021
1 parent a8ca6b1 commit a119b4e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kernel/kexec_core.c
Original file line number Diff line number Diff line change
Expand Up @@ -1165,7 +1165,7 @@ int kernel_kexec(void)
#endif
{
kexec_in_progress = true;
kernel_restart_prepare(NULL);
kernel_restart_prepare("kexec reboot");
migrate_to_reboot_cpu();

/*
Expand Down

0 comments on commit a119b4e

Please sign in to comment.