[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PULL 14/27] timer: update comments
From: |
Michael Tokarev |
Subject: |
[Qemu-devel] [PULL 14/27] timer: update comments |
Date: |
Wed, 14 Sep 2016 10:58:40 +0300 |
From: Cao jin <address@hidden>
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 <address@hidden>
Cc: Peter Maydell <address@hidden>
Signed-off-by: Cao jin <address@hidden>
Signed-off-by: Michael Tokarev <address@hidden>
---
include/qemu/timer.h | 19 ++++++-------------
1 file changed, 6 insertions(+), 13 deletions(-)
diff --git a/include/qemu/timer.h b/include/qemu/timer.h
index 4bfcd35..bdfae00 100644
--- a/include/qemu/timer.h
+++ b/include/qemu/timer.h
@@ -22,23 +22,20 @@
* @QEMU_CLOCK_REALTIME: Real time clock
*
* 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
- * machine is stopped. The real time clock has a frequency of 1000
- * Hz.
+ * change the virtual machine state, as it runs even if the virtual
+ * machine is stopped.
*
* @QEMU_CLOCK_VIRTUAL: virtual clock
*
- * The virtual clock is only run during the emulation. It is stopped
- * when the virtual machine is stopped. Virtual timers use a high
- * precision clock, usually cpu cycles (use ticks_per_sec).
+ * The virtual clock only runs during the emulation. It stops
+ * when the virtual machine is stopped.
*
* @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
* 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
- * the virtual clock.
+ * undergo (e.g. due to NTP).
*
* @QEMU_CLOCK_VIRTUAL_RT: realtime clock used for icount warp
*
@@ -77,10 +74,6 @@ struct QEMUTimer {
extern QEMUTimerListGroup main_loop_tlg;
/*
- * QEMUClockType
- */
-
-/*
* qemu_clock_get_ns;
* @type: the clock type
*
--
2.1.4
- [Qemu-devel] [PULL 00/27] Trivial patches for 2016-09-14, Michael Tokarev, 2016/09/14
- [Qemu-devel] [PULL 02/27] tcg: Remove duplicate header includes, Michael Tokarev, 2016/09/14
- [Qemu-devel] [PULL 09/27] MAINTAINERS: Add some header files to the PC chipset section, Michael Tokarev, 2016/09/14
- [Qemu-devel] [PULL 13/27] ivshmem: Delete duplicate debug message, Michael Tokarev, 2016/09/14
- [Qemu-devel] [PULL 14/27] timer: update comments,
Michael Tokarev <=
- [Qemu-devel] [PULL 04/27] MAINTAINERS: Add include/hw/unicore32/ to UniCore32 section, Michael Tokarev, 2016/09/14
- [Qemu-devel] [PULL 06/27] MAINTAINERS: Add include/hw/sh4/ to SH4 section, Michael Tokarev, 2016/09/14
- [Qemu-devel] [PULL 22/27] tricore: remove useless cast, Michael Tokarev, 2016/09/14
- [Qemu-devel] [PULL 18/27] curl: Operate on zero-length file, Michael Tokarev, 2016/09/14
- [Qemu-devel] [PULL 25/27] win32: don't run subprocess tests on Mingw32 platform, Michael Tokarev, 2016/09/14
- [Qemu-devel] [PULL 01/27] Remove remainders of HPPA backend, Michael Tokarev, 2016/09/14
- [Qemu-devel] [PULL 27/27] mptsas: change .realize function name, Michael Tokarev, 2016/09/14
- [Qemu-devel] [PULL 23/27] fw_cfg: remove useless casts, Michael Tokarev, 2016/09/14
- [Qemu-devel] [PULL 07/27] MAINTAINERS: Add include/sysemu/cpus.h, Michael Tokarev, 2016/09/14
- [Qemu-devel] [PULL 21/27] s390x: remove useless cast, Michael Tokarev, 2016/09/14