aboutsummaryrefslogtreecommitdiffstats
path: root/xen/include/xen/timer.h
diff options
context:
space:
mode:
authorkaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk>2006-02-08 17:27:32 +0100
committerkaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk>2006-02-08 17:27:32 +0100
commit6472d247518ec5540e2198c598c791e00bb0b8f0 (patch)
tree0df75b845325007e9c73fc87b4d914f3563e556e /xen/include/xen/timer.h
parent55a07900b41856a70fd460cadc5ced056f67d31c (diff)
downloadxen-6472d247518ec5540e2198c598c791e00bb0b8f0.tar.gz
xen-6472d247518ec5540e2198c598c791e00bb0b8f0.tar.bz2
xen-6472d247518ec5540e2198c598c791e00bb0b8f0.zip
Fix Xen timer interface to allow migration of timers
among CPUs (using new migrate_timer() call). Fix the locking protocol in light of this addition. Signed-off-by: Keir Fraser <keir@xensource.com>
Diffstat (limited to 'xen/include/xen/timer.h')
-rw-r--r--xen/include/xen/timer.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/xen/include/xen/timer.h b/xen/include/xen/timer.h
index f53a7ed35f..ed25521c1a 100644
--- a/xen/include/xen/timer.h
+++ b/xen/include/xen/timer.h
@@ -66,6 +66,12 @@ extern void set_timer(struct timer *timer, s_time_t expires);
extern void stop_timer(struct timer *timer);
/*
+ * Migrate a timer to a different CPU. The timer must have been previously
+ * initialised by init_timer(). The timer may be active.
+ */
+extern void migrate_timer(struct timer *timer, unsigned int new_cpu);
+
+/*
* Deactivate a timer and prevent it from being re-set (future calls to
* set_timer will silently fail). When this function returns it is guaranteed
* that the timer callback handler is not running on any CPU.