aboutsummaryrefslogtreecommitdiffstats
path: root/xen/include/xen/timer.h
diff options
context:
space:
mode:
authorKeir Fraser <keir.fraser@citrix.com>2009-02-13 09:43:06 +0000
committerKeir Fraser <keir.fraser@citrix.com>2009-02-13 09:43:06 +0000
commit0eecf73be6e7304f382dd16491cd2917f5135bae (patch)
tree7dbede426b91e2337b906fda58bebe380279d7a1 /xen/include/xen/timer.h
parent737073ac89f753d7601933a29bf71365f733744b (diff)
downloadxen-0eecf73be6e7304f382dd16491cd2917f5135bae.tar.gz
xen-0eecf73be6e7304f382dd16491cd2917f5135bae.tar.bz2
xen-0eecf73be6e7304f382dd16491cd2917f5135bae.zip
hvm: Align periodic vpts.
Aligned periodic vpts can improve the HVM guest power consumption a lot, especially while the guest using high HZ such as 1000HZ. Signed-off-by: Wei Gang <gang.wei@intel.com>
Diffstat (limited to 'xen/include/xen/timer.h')
-rw-r--r--xen/include/xen/timer.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/xen/include/xen/timer.h b/xen/include/xen/timer.h
index f3d2705d82..0379d950a3 100644
--- a/xen/include/xen/timer.h
+++ b/xen/include/xen/timer.h
@@ -122,6 +122,9 @@ DECLARE_PER_CPU(s_time_t, timer_deadline);
/* Arch-defined function to reprogram timer hardware for new deadline. */
extern int reprogram_timer(s_time_t timeout);
+/* calculate the aligned first tick time for a given periodic timer */
+extern s_time_t align_timer(s_time_t firsttick, uint64_t period);
+
#endif /* _TIMER_H_ */
/*