From patchwork Mon Apr 24 17:58:37 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Julien Grall X-Patchwork-Id: 98150 Delivered-To: patch@linaro.org Received: by 10.140.109.52 with SMTP id k49csp1597906qgf; Mon, 24 Apr 2017 10:59:51 -0700 (PDT) X-Received: by 10.99.125.82 with SMTP id m18mr26040023pgn.79.1493056791146; Mon, 24 Apr 2017 10:59:51 -0700 (PDT) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a5si19888353plh.187.2017.04.24.10.59.51; Mon, 24 Apr 2017 10:59:51 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-efi-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-efi-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-efi-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1428376AbdDXR7e (ORCPT + 2 others); Mon, 24 Apr 2017 13:59:34 -0400 Received: from foss.arm.com ([217.140.101.70]:60064 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1428332AbdDXR7C (ORCPT ); Mon, 24 Apr 2017 13:59:02 -0400 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 7235080D; Mon, 24 Apr 2017 10:58:56 -0700 (PDT) Received: from e108454-lin.cambridge.arm.com (e108454-lin.cambridge.arm.com [10.1.206.53]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 72E393F4FF; Mon, 24 Apr 2017 10:58:54 -0700 (PDT) From: Julien Grall To: xen-devel@lists.xen.org Cc: sstabellini@kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, mark.rutland@arm.com, linux-efi@vger.kernel.org, Julien Grall , Boris Ostrovsky , Juergen Gross , Thomas Gleixner , Ingo Molnar , "H. Peter Anvin" , x86@kernel.org Subject: [PATCH 1/3 v2] xen: Export xen_reboot Date: Mon, 24 Apr 2017 18:58:37 +0100 Message-Id: <20170424175839.5262-2-julien.grall@arm.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20170424175839.5262-1-julien.grall@arm.com> References: <20170424175839.5262-1-julien.grall@arm.com> Sender: linux-efi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-efi@vger.kernel.org The helper xen_reboot will be called by the EFI code in a later patch. Note that the ARM version does not yet exist and will be added in a later patch too. Signed-off-by: Julien Grall --- Cc: Boris Ostrovsky Cc: Juergen Gross Cc: Thomas Gleixner Cc: Ingo Molnar Cc: "H. Peter Anvin" Cc: x86@kernel.org Changes in v2: - Patch added --- arch/x86/xen/enlighten.c | 2 +- include/xen/xen-ops.h | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) -- 2.11.0 -- To unsubscribe from this list: send the line "unsubscribe linux-efi" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Reviewed-by: Juergen Gross diff --git a/arch/x86/xen/enlighten.c b/arch/x86/xen/enlighten.c index ec1d5c46e58f..563f2d963a04 100644 --- a/arch/x86/xen/enlighten.c +++ b/arch/x86/xen/enlighten.c @@ -1294,7 +1294,7 @@ static const struct pv_cpu_ops xen_cpu_ops __initconst = { .end_context_switch = xen_end_context_switch, }; -static void xen_reboot(int reason) +void xen_reboot(int reason) { struct sched_shutdown r = { .reason = reason }; int cpu; diff --git a/include/xen/xen-ops.h b/include/xen/xen-ops.h index b5486e648607..fc5ddb472f86 100644 --- a/include/xen/xen-ops.h +++ b/include/xen/xen-ops.h @@ -22,6 +22,8 @@ void xen_timer_resume(void); void xen_arch_resume(void); void xen_arch_suspend(void); +void xen_reboot(int reason); + void xen_resume_notifier_register(struct notifier_block *nb); void xen_resume_notifier_unregister(struct notifier_block *nb);