Received: by 2002:a05:6520:3645:b029:c0:f950:43e0 with SMTP id l5csp6288664lki; Thu, 4 Mar 2021 09:18:41 -0800 (PST) X-Google-Smtp-Source: ABdhPJwji+h3U82kBOYeTH7piK/plL1tzV/x2k91ED+TSS8XBFsnG7hJOdddA/zcDiE++kRTuK3S X-Received: by 2002:a50:cc4a:: with SMTP id n10mr5582101edi.371.1614878321450; Thu, 04 Mar 2021 09:18:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614878321; cv=none; d=google.com; s=arc-20160816; b=yXaei7LAvDbgAX6N9iRUD6Sp+UtaX3v/tu4Y9i2jCCTG9ENkfZDGays4J44+8Ctr8R HiZEzN0cyMAPZTbnmWZuh+dRillnWO0ANh7M96OasXheswFR8KYLaKthTWk/Kdq8MZkY MOqbq9jKXDJSp6HST8PK2YI+9cwS6VSSyyjims3y817ZLj9Om8ntign52cZlp186AVvf h4fe1GCNX6Mgapg8tu6L1jeZKQqKlyekr/GV9T5NHhGiXtuCiSIozhgRCCcs2KE6Apsz p5AjuzO35+i+4KfeG7mYNKSZORKToQHsOyD8v55QliDwp1trWjpnHP8Uq6gP0m+Bv37i FwXQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=DKSiXcKGmWXNm90cw4/hYh/x5uTNmK+BsX4Sw6K1yug=; b=wPTkbQjMYqfXOorStfU1Tdo46LJ1yQqyKPdYHy5HeyBGWio5Vp76hUuxGtCQkaqoHx EORjAuN92Vbc3MECuR4W7UbSj9o+80sV+VobVJjGKrCX6vl6fxuyhK0FBK5Sh+V2kAZD bW1aCZmdZvmL8Cwq7Q46CYGxeWqZFogZE0tRyX8pJqDEpf3BpzYsLwBE9VwpJEpMW+xK 5ELkCrYzQT4VhGyKjooxu7GOT34v4br+S7Z3/5B9xCGZkmKvyW+OGhzmvXTDyGut5LoD O1StNWaJkTObDogxKmiQkDCkmyANw9PeGZyGLrlDTOib3cI0rumrD5We2TYwvlxEEWRu 1bxQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id a15si231edr.471.2021.03.04.09.18.18; Thu, 04 Mar 2021 09:18:41 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231350AbhCDMrq (ORCPT + 99 others); Thu, 4 Mar 2021 07:47:46 -0500 Received: from mx3.molgen.mpg.de ([141.14.17.11]:52003 "EHLO mx1.molgen.mpg.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S231294AbhCDMrQ (ORCPT ); Thu, 4 Mar 2021 07:47:16 -0500 Received: from localhost.localdomain (ip5f5aed34.dynamic.kabel-deutschland.de [95.90.237.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: pmenzel) by mx.molgen.mpg.de (Postfix) with ESMTPSA id 2E1AB20647918; Thu, 4 Mar 2021 13:46:34 +0100 (CET) From: Paul Menzel To: Eric Biederman Cc: kexec@lists.infradead.org, linux-kernel@vger.kernel.org, Guohan Lu , Joe LeVeque , Paul Menzel Subject: [PATCH] kexec: Add kexec reboot string Date: Thu, 4 Mar 2021 13:46:26 +0100 Message-Id: <20210304124626.13927-1-pmenzel@molgen.mpg.de> X-Mailer: git-send-email 2.30.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Joe LeVeque The purpose is to notify the kernel module for fast reboot. Upstream a patch from the SONiC network operating system [1]. [1]: https://github.com/Azure/sonic-linux-kernel/pull/46 Signed-off-by: Paul Menzel --- 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 a0b6780740c8..f04d04d1b855 100644 --- a/kernel/kexec_core.c +++ b/kernel/kexec_core.c @@ -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(); /* -- 2.30.1