Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 99560
b: refs/heads/master
c: 359cdd3
h: refs/heads/master
v: v3
  • Loading branch information
Jeremy Fitzhardinge authored and Thomas Gleixner committed May 27, 2008
1 parent 135e880 commit 2d0017f
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 15 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: 0e91398f2a5d4eb6b07df8115917d0d1cf3e9b58
refs/heads/master: 359cdd3f866b6219a6729e313faf2221397f3278
8 changes: 0 additions & 8 deletions trunk/arch/x86/xen/time.c
Original file line number Diff line number Diff line change
Expand Up @@ -572,14 +572,6 @@ void xen_setup_cpu_clockevents(void)
clockevents_register_device(&__get_cpu_var(xen_clock_events));
}

void xen_time_suspend(void)
{
}

void xen_time_resume(void)
{
}

__init void xen_time_init(void)
{
int cpu = smp_processor_id();
Expand Down
15 changes: 12 additions & 3 deletions trunk/drivers/xen/manage.c
Original file line number Diff line number Diff line change
Expand Up @@ -34,14 +34,21 @@ static enum shutdown_state shutting_down = SHUTDOWN_INVALID;
static int xen_suspend(void *data)
{
int *cancelled = data;
int err;

BUG_ON(!irqs_disabled());

load_cr3(swapper_pg_dir);

err = device_power_down(PMSG_SUSPEND);
if (err) {
printk(KERN_ERR "xen_suspend: device_power_down failed: %d\n",
err);
return err;
}

xen_mm_pin_all();
gnttab_suspend();
xen_time_suspend();
xen_pre_suspend();

/*
Expand All @@ -52,10 +59,11 @@ static int xen_suspend(void *data)
*cancelled = HYPERVISOR_suspend(virt_to_mfn(xen_start_info));

xen_post_suspend(*cancelled);
xen_time_resume();
gnttab_resume();
xen_mm_unpin_all();

device_power_up();

if (!*cancelled) {
xen_irq_resume();
xen_console_resume();
Expand Down Expand Up @@ -105,7 +113,8 @@ static void do_suspend(void)

device_resume();


/* Make sure timer events get retriggered on all CPUs */
clock_was_set();
out:
#ifdef CONFIG_PREEMPT
thaw_processes();
Expand Down
3 changes: 0 additions & 3 deletions trunk/include/xen/xen-ops.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,4 @@ void xen_post_suspend(int suspend_cancelled);
void xen_mm_pin_all(void);
void xen_mm_unpin_all(void);

void xen_time_suspend(void);
void xen_time_resume(void);

#endif /* INCLUDE_XEN_OPS_H */

0 comments on commit 2d0017f

Please sign in to comment.