Skip to content

Commit

Permalink
Add kexec reboot string (#46)
Browse files Browse the repository at this point in the history
The purpose is to notify kernel module for fast reboot
  • Loading branch information
jleveque authored and lguohan committed Apr 17, 2018
1 parent ed04b36 commit b511c96
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 0 deletions.
25 changes: 25 additions & 0 deletions patch/kernel-add-kexec-reboot-string.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
From cc1ab16f0e641a8b3cd90c802c2e48a4c89c238b Mon Sep 17 00:00:00 2001
From: Joe LeVeque <jolevequ@microsoft.com>
Date: Fri, 13 Apr 2018 19:32:25 +0000
Subject: [PATCH] Add kexec reboot string

---
kernel/kexec.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/kernel/kexec.c b/kernel/kexec.c
index 4b8f0c9..52cf984 100644
--- a/kernel/kexec.c
+++ b/kernel/kexec.c
@@ -1681,7 +1681,7 @@ int kernel_kexec(void)
#endif
{
kexec_in_progress = true;
- kernel_restart_prepare(NULL);
+ kernel_restart_prepare("kexec reboot");
migrate_to_reboot_cpu();

/*
--
2.1.4

1 change: 1 addition & 0 deletions patch/series
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# This series applies on GIT commit 1451b36b2b0d62178e42f648d8a18131af18f7d8
kernel-add-kexec-reboot-string.patch
kernel-sched-core-fix-cgroup-fork-race.patch
config-dell-s6000.patch
config-mlnx-sn2700.patch
Expand Down

0 comments on commit b511c96

Please sign in to comment.