From b511c96bcea09ae2b2adb3c3df7c4c41f14b6929 Mon Sep 17 00:00:00 2001 From: Joe LeVeque Date: Tue, 17 Apr 2018 14:08:22 -0700 Subject: [PATCH] Add kexec reboot string (#46) The purpose is to notify kernel module for fast reboot --- patch/kernel-add-kexec-reboot-string.patch | 25 ++++++++++++++++++++++ patch/series | 1 + 2 files changed, 26 insertions(+) create mode 100644 patch/kernel-add-kexec-reboot-string.patch diff --git a/patch/kernel-add-kexec-reboot-string.patch b/patch/kernel-add-kexec-reboot-string.patch new file mode 100644 index 000000000000..3a60fbd8ee43 --- /dev/null +++ b/patch/kernel-add-kexec-reboot-string.patch @@ -0,0 +1,25 @@ +From cc1ab16f0e641a8b3cd90c802c2e48a4c89c238b Mon Sep 17 00:00:00 2001 +From: Joe LeVeque +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 + diff --git a/patch/series b/patch/series index dc8ceb1f4471..c1a949a162a1 100644 --- a/patch/series +++ b/patch/series @@ -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