1 #include <linux/types.h> 2 3 #include <xen/xen.h> 4 #include <xen/features.h> 5 #include <xen/interface/features.h> 6 7 #include "xen-ops.h" 8 9 void xen_hvm_post_suspend(int suspend_cancelled) 10 { 11 int cpu; 12 13 if (!suspend_cancelled) 14 xen_hvm_init_shared_info(); 15 xen_callback_vector(); 16 xen_unplug_emulated_devices(); 17 if (xen_feature(XENFEAT_hvm_safe_pvclock)) { 18 for_each_online_cpu(cpu) { 19 xen_setup_runstate_info(cpu); 20 } 21 } 22 } 23