aboutsummaryrefslogtreecommitdiffstats
path: root/xen-2.4.16/include/xeno/timer.h
diff options
context:
space:
mode:
authorrn@wyvis.camb.intel-research.net <rn@wyvis.camb.intel-research.net>2003-01-30 19:35:24 +0000
committerrn@wyvis.camb.intel-research.net <rn@wyvis.camb.intel-research.net>2003-01-30 19:35:24 +0000
commit9062553a0dc188eaf5f0fa001dbe92e64a7d64e9 (patch)
tree8a21d6af1b57302389695fc71fa61a01813dda5e /xen-2.4.16/include/xeno/timer.h
parent22a857bde9b89547d682aa92bb226096119b0223 (diff)
downloadxen-9062553a0dc188eaf5f0fa001dbe92e64a7d64e9.tar.gz
xen-9062553a0dc188eaf5f0fa001dbe92e64a7d64e9.tar.bz2
xen-9062553a0dc188eaf5f0fa001dbe92e64a7d64e9.zip
bitkeeper revision 1.14.1.1 (3e397e7cPGmZK7y5LLOGYa43nTQMUw)
added time and accurate timer support partially there for better scheduler (most of the infrastructure should be there)
Diffstat (limited to 'xen-2.4.16/include/xeno/timer.h')
-rw-r--r--xen-2.4.16/include/xeno/timer.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/xen-2.4.16/include/xeno/timer.h b/xen-2.4.16/include/xeno/timer.h
index c4f01ada59..dcde75b182 100644
--- a/xen-2.4.16/include/xeno/timer.h
+++ b/xen-2.4.16/include/xeno/timer.h
@@ -12,10 +12,17 @@
* The "data" field enables use of a common timeout function for several
* timeouts. You can use this field to distinguish between the different
* invocations.
+ *
+ * RN: Unlike the Linux timers, which are executed at the periodic timer
+ * interrupt, in Xen, the timer list is only checked "occasionally", thus
+ * its accuracy might be somewhat worse than under Linux. However, the
+ * hypervisor should be purely event-driven and, in fact, in the current
+ * implementation, timers are only used for watchdog purpose at a very
+ * coarse granularity anyway. Thus this is not a problem.
*/
struct timer_list {
struct list_head list;
- unsigned long expires;
+ unsigned long expires; /* jiffies */
unsigned long data;
void (*function)(unsigned long);
};