Merge branch 'linus' into x86/xen
[sfrench/cifs-2.6.git] / arch / x86 / xen / time.c
index 52b2e3856980ea6f26fa265b071fe4455d20104a..0da249dbdc49b992c966142c354ce1877628c605 100644 (file)
@@ -565,6 +565,19 @@ void xen_setup_cpu_clockevents(void)
        clockevents_register_device(&__get_cpu_var(xen_clock_events));
 }
 
+void xen_timer_resume(void)
+{
+       int cpu;
+
+       if (xen_clockevent != &xen_vcpuop_clockevent)
+               return;
+
+       for_each_online_cpu(cpu) {
+               if (HYPERVISOR_vcpu_op(VCPUOP_stop_periodic_timer, cpu, NULL))
+                       BUG();
+       }
+}
+
 __init void xen_time_init(void)
 {
        int cpu = smp_processor_id();