]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
xen: Export xen_reboot
authorJulien Grall <julien.grall@arm.com>
Mon, 24 Apr 2017 17:58:37 +0000 (18:58 +0100)
committerChuck Anderson <chuck.anderson@oracle.com>
Wed, 13 Sep 2017 04:37:59 +0000 (21:37 -0700)
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 <julien.grall@arm.com>
Signed-off-by: Juergen Gross <jgross@suse.com>
OraBug: 26662731

(cherry picked from commit 5d9404e1185de8d508cd042761306495f727d7eb)
Signed-off-by: Boris Ostrovsky <boris.ostrovsky@oracle.com>
Reviewed-by: Joao Martins <joao.m.martins@oracle.com>
Conflicts:
arch/x86/xen/xen-ops.h
arch/x86/xen/enlighten.c
(No changes to xen-ops.h, make xen_reboot() non-static)

arch/x86/xen/enlighten.c
include/xen/xen-ops.h

index 0fbeb1c650280fc681a94de64941884eca4eca89..42c6fefbbe19c6c09334aad021df8dc622115a94 100644 (file)
@@ -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;
index b5486e64860759aed11763ac983b3b4aa12988b3..fc5ddb472f866524c8fbf92f3136fac062f8f074 100644 (file)
@@ -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);