aboutsummaryrefslogtreecommitdiffstats
path: root/arch/ia64/xen/time.c
diff options
context:
space:
mode:
authorIsaku Yamahata <yamahata@valinux.co.jp>2008-10-16 22:18:10 -0400
committerTony Luck <tony.luck@intel.com>2008-10-17 13:09:25 -0400
commit91834e685d2059b69c4e8e3d707f35d94438de94 (patch)
treec97e5d8c2b8fe8de49b9cd32c592ecec4eb3c47a /arch/ia64/xen/time.c
parenta0df655ccd0669bd3efc85346dc816833dd1197f (diff)
ia64/xen: preliminary support for save/restore.
preliminary support for save/restore. Although Save/restore isn't fully working yet, this patch is necessary to compile. Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp> Signed-off-by: Tony Luck <tony.luck@intel.com>
Diffstat (limited to 'arch/ia64/xen/time.c')
-rw-r--r--arch/ia64/xen/time.c33
1 files changed, 33 insertions, 0 deletions
diff --git a/arch/ia64/xen/time.c b/arch/ia64/xen/time.c
index ec168ec754b2..d15a94c330fb 100644
--- a/arch/ia64/xen/time.c
+++ b/arch/ia64/xen/time.c
@@ -26,6 +26,8 @@
26#include <linux/irq.h> 26#include <linux/irq.h>
27#include <linux/clocksource.h> 27#include <linux/clocksource.h>
28 28
29#include <asm/timex.h>
30
29#include <asm/xen/hypervisor.h> 31#include <asm/xen/hypervisor.h>
30 32
31#include <xen/interface/vcpu.h> 33#include <xen/interface/vcpu.h>
@@ -178,3 +180,34 @@ struct pv_time_ops xen_time_ops __initdata = {
178 .do_steal_accounting = xen_do_steal_accounting, 180 .do_steal_accounting = xen_do_steal_accounting,
179 .clocksource_resume = xen_itc_jitter_data_reset, 181 .clocksource_resume = xen_itc_jitter_data_reset,
180}; 182};
183
184/* Called after suspend, to resume time. */
185static void xen_local_tick_resume(void)
186{
187 /* Just trigger a tick. */
188 ia64_cpu_local_tick();
189 touch_softlockup_watchdog();
190}
191
192void
193xen_timer_resume(void)
194{
195 unsigned int cpu;
196
197 xen_local_tick_resume();
198
199 for_each_online_cpu(cpu)
200 xen_init_missing_ticks_accounting(cpu);
201}
202
203static void ia64_cpu_local_tick_fn(void *unused)
204{
205 xen_local_tick_resume();
206 xen_init_missing_ticks_accounting(smp_processor_id());
207}
208
209void
210xen_timer_resume_on_aps(void)
211{
212 smp_call_function(&ia64_cpu_local_tick_fn, NULL, 1);
213}