Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 174428
b: refs/heads/master
c: f6eafe3
h: refs/heads/master
v: v3
  • Loading branch information
Ian Campbell authored and Jeremy Fitzhardinge committed Dec 3, 2009
1 parent f438f3e commit 6ea7dd6
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 2 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: 6aaf5d633bb6cead81b396d861d7bae4b9a0ba7e
refs/heads/master: f6eafe3665bcc374c66775d58312d1c06c55303f
15 changes: 14 additions & 1 deletion trunk/arch/x86/xen/suspend.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#include <linux/types.h>
#include <linux/clockchips.h>

#include <xen/interface/xen.h>
#include <xen/grant_table.h>
Expand Down Expand Up @@ -46,7 +47,19 @@ void xen_post_suspend(int suspend_cancelled)

}

static void xen_vcpu_notify_restore(void *data)
{
unsigned long reason = (unsigned long)data;

/* Boot processor notified via generic timekeeping_resume() */
if ( smp_processor_id() == 0)
return;

clockevents_notify(reason, NULL);
}

void xen_arch_resume(void)
{
/* nothing */
smp_call_function(xen_vcpu_notify_restore,
(void *)CLOCK_EVT_NOTIFY_RESUME, 1);
}

0 comments on commit 6ea7dd6

Please sign in to comment.