From: Julien Grall Date: Mon, 24 Apr 2017 17:58:37 +0000 (+0100) Subject: xen: Export xen_reboot X-Git-Tag: v4.1.12-111.0.20170918_2215~221 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=ef281247648af7e0d9f0f0bb0f771071a31723a7;p=users%2Fjedix%2Flinux-maple.git xen: Export xen_reboot 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 Signed-off-by: Juergen Gross OraBug: 26662731 (cherry picked from commit 5d9404e1185de8d508cd042761306495f727d7eb) Signed-off-by: Boris Ostrovsky Reviewed-by: Joao Martins Conflicts: arch/x86/xen/xen-ops.h arch/x86/xen/enlighten.c (No changes to xen-ops.h, make xen_reboot() non-static) --- diff --git a/arch/x86/xen/enlighten.c b/arch/x86/xen/enlighten.c index 0fbeb1c650280..42c6fefbbe19c 100644 --- a/arch/x86/xen/enlighten.c +++ b/arch/x86/xen/enlighten.c @@ -1327,7 +1327,7 @@ static const struct pv_apic_ops xen_apic_ops __initconst = { #endif }; -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 b5486e6486075..fc5ddb472f866 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);