drm/modes: Fix drm_mode_vrefres() docs
[drm/drm-misc.git] / arch / x86 / xen / suspend_hvm.c
blob0c4f7554b7cc6bddb87413a99184ee5506fe9897
1 // SPDX-License-Identifier: GPL-2.0
2 #include <linux/types.h>
4 #include <xen/xen.h>
5 #include <xen/hvm.h>
6 #include <xen/features.h>
7 #include <xen/interface/features.h>
8 #include <xen/events.h>
10 #include "xen-ops.h"
12 void xen_hvm_post_suspend(int suspend_cancelled)
14 if (!suspend_cancelled) {
15 xen_hvm_init_shared_info();
16 xen_vcpu_restore();
18 if (xen_percpu_upcall) {
19 unsigned int cpu;
21 for_each_online_cpu(cpu)
22 BUG_ON(xen_set_upcall_vector(cpu));
23 } else {
24 xen_setup_callback_vector();
26 xen_unplug_emulated_devices();