]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - kernel/hrtimer.c
[PATCH] high-res timers: resume fix
[linux-2.6-omap-h63xx.git] / kernel / hrtimer.c
index 067ba2c0532805f8e9e3e753eba456d6a7cbf1b9..b74860aaf5f18713a2ff4c7a0719969bd86496fd 100644 (file)
@@ -458,6 +458,18 @@ void clock_was_set(void)
        on_each_cpu(retrigger_next_event, NULL, 0, 1);
 }
 
+/*
+ * During resume we might have to reprogram the high resolution timer
+ * interrupt (on the local CPU):
+ */
+void hres_timers_resume(void)
+{
+       WARN_ON_ONCE(num_online_cpus() > 1);
+
+       /* Retrigger the CPU local events: */
+       retrigger_next_event(NULL);
+}
+
 /*
  * Check, whether the timer is on the callback pending list
  */