Skip to content

Commit

Permalink
Add kexec reboot string (sonic-net#46)
Browse files Browse the repository at this point in the history
  • Loading branch information
jleveque authored and lguohan committed Jul 30, 2018
1 parent a21a592 commit 77895c5
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 0 deletions.
22 changes: 22 additions & 0 deletions patch/kernel-add-kexec-reboot-string.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
From cc1ab16f0e641a8b3cd90c802c2e48a4c89c238b Mon Sep 17 00:00:00 2001

From: Joe LeVeque <jolevequ@microsoft.com>

Subject: [PATCH] Add kexec reboot string
---
kernel/kexec_core.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/kernel/kexec_core.c b/kernel/kexec_core.c
index 5616755..ac8a106 100644
--- a/kernel/kexec_core.c
+++ b/kernel/kexec_core.c
@@ -1531,7 +1531,7 @@ int kernel_kexec(void)
#endif
{
kexec_in_progress = true;
- kernel_restart_prepare(NULL);
+ kernel_restart_prepare("kexec reboot");
migrate_to_reboot_cpu();

/*
1 change: 1 addition & 0 deletions patch/series
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ driver-sff-8436-use-nvmem-framework.patch
driver-sff-8436-use-nvmem_device_read.patch
driver-i2c-bus-intel-ismt-add-delay-param.patch
driver-pca954x-i2c-mux-force-deselect-on-exit-flag.patch
kernel-add-kexec-reboot-string.patch
driver-hwmon-max6620.patch
driver-hwmon-max6620-fix-rpm-calc.patch
driver-hwmon-max6620-update.patch
Expand Down

0 comments on commit 77895c5

Please sign in to comment.