Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 104404
b: refs/heads/master
c: ad55db9
h: refs/heads/master
v: v3
  • Loading branch information
Isaku Yamahata authored and Ingo Molnar committed Jul 16, 2008
1 parent 643bf1a commit a799869
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 1ffb40b8ecdf314edd88dc5550d6bcbebf29970b
refs/heads/master: ad55db9fed6d6cd09333045945cb03ba2c070085
5 changes: 4 additions & 1 deletion trunk/arch/x86/xen/suspend.c
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,11 @@ void xen_post_suspend(int suspend_cancelled)
xen_cpu_initialized_map = cpu_online_map;
#endif
xen_vcpu_restore();
xen_timer_resume();
}

}

void xen_arch_resume(void)
{
/* nothing */
}
1 change: 0 additions & 1 deletion trunk/arch/x86/xen/xen-ops.h
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ void __init xen_time_init(void);
unsigned long xen_get_wallclock(void);
int xen_set_wallclock(unsigned long time);
unsigned long long xen_sched_clock(void);
void xen_timer_resume(void);

irqreturn_t xen_debug_interrupt(int irq, void *dev_id);

Expand Down
6 changes: 4 additions & 2 deletions trunk/drivers/xen/manage.c
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ static int xen_suspend(void *data)
if (!*cancelled) {
xen_irq_resume();
xen_console_resume();
xen_timer_resume();
}

return 0;
Expand Down Expand Up @@ -107,9 +108,10 @@ static void do_suspend(void)
goto out;
}

if (!cancelled)
if (!cancelled) {
xen_arch_resume();
xenbus_resume();
else
} else
xenbus_suspend_cancel();

device_resume();
Expand Down
3 changes: 3 additions & 0 deletions trunk/include/xen/xen-ops.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,7 @@ void xen_post_suspend(int suspend_cancelled);
void xen_mm_pin_all(void);
void xen_mm_unpin_all(void);

void xen_timer_resume(void);
void xen_arch_resume(void);

#endif /* INCLUDE_XEN_OPS_H */

0 comments on commit a799869

Please sign in to comment.