提交 490ab15a 编写于 作者: C Cao jin 提交者: Paolo Bonzini

timer: update comments

The comments is outdated. The patch has following changes:
1. tense correction.
2. all clock time value is returned in nanoseconds, so, they are same in
precision.
3. virtual clock doesn't use cpu cycles.

Cc: Paolo Bonzini <pbonzini@redhat.com>
Cc: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: NCao jin <caoj.fnst@cn.fujitsu.com>
Message-Id: <1469790338-28990-2-git-send-email-caoj.fnst@cn.fujitsu.com>
Signed-off-by: NPaolo Bonzini <pbonzini@redhat.com>
上级 5b1b6dbd
...@@ -22,23 +22,20 @@ ...@@ -22,23 +22,20 @@
* @QEMU_CLOCK_REALTIME: Real time clock * @QEMU_CLOCK_REALTIME: Real time clock
* *
* The real time clock should be used only for stuff which does not * The real time clock should be used only for stuff which does not
* change the virtual machine state, as it is run even if the virtual * change the virtual machine state, as it runs even if the virtual
* machine is stopped. The real time clock has a frequency of 1000 * machine is stopped.
* Hz.
* *
* @QEMU_CLOCK_VIRTUAL: virtual clock * @QEMU_CLOCK_VIRTUAL: virtual clock
* *
* The virtual clock is only run during the emulation. It is stopped * The virtual clock only runs during the emulation. It stops
* when the virtual machine is stopped. Virtual timers use a high * when the virtual machine is stopped.
* precision clock, usually cpu cycles (use ticks_per_sec).
* *
* @QEMU_CLOCK_HOST: host clock * @QEMU_CLOCK_HOST: host clock
* *
* The host clock should be use for device models that emulate accurate * The host clock should be used for device models that emulate accurate
* real time sources. It will continue to run when the virtual machine * real time sources. It will continue to run when the virtual machine
* is suspended, and it will reflect system time changes the host may * is suspended, and it will reflect system time changes the host may
* undergo (e.g. due to NTP). The host clock has the same precision as * undergo (e.g. due to NTP).
* the virtual clock.
* *
* @QEMU_CLOCK_VIRTUAL_RT: realtime clock used for icount warp * @QEMU_CLOCK_VIRTUAL_RT: realtime clock used for icount warp
* *
...@@ -76,10 +73,6 @@ struct QEMUTimer { ...@@ -76,10 +73,6 @@ struct QEMUTimer {
extern QEMUTimerListGroup main_loop_tlg; extern QEMUTimerListGroup main_loop_tlg;
/*
* QEMUClockType
*/
/* /*
* qemu_clock_get_ns; * qemu_clock_get_ns;
* @type: the clock type * @type: the clock type
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册