]> Git Repo - qemu.git/commitdiff
timer/cpus: fix some typos and update some comments
authorCao jin <[email protected]>
Fri, 8 Jul 2016 10:31:37 +0000 (18:31 +0800)
committerMichael Tokarev <mjt@gandalf>
Tue, 13 Sep 2016 15:12:34 +0000 (18:12 +0300)
Signed-off-by: Cao jin <[email protected]>
Signed-off-by: Michael Tokarev <[email protected]>
cpus.c
include/qemu/timer.h

diff --git a/cpus.c b/cpus.c
index 84c3520d446f53a57a57c5732bbb9dcc230070bf..0ab4ab1ef21dca80bfca8ad69d6b96c0431bc396 100644 (file)
--- a/cpus.c
+++ b/cpus.c
@@ -229,7 +229,7 @@ static int64_t cpu_get_clock_locked(void)
     return ticks;
 }
 
-/* return the host CPU monotonic timer and handle stop/restart */
+/* return the host CPU monotonic time */
 int64_t cpu_get_clock(void)
 {
     int64_t ti;
@@ -244,7 +244,7 @@ int64_t cpu_get_clock(void)
 }
 
 /* enable cpu_get_ticks()
- * Caller must hold BQL which server as mutex for vm_clock_seqlock.
+ * Caller must hold BQL which serves as mutex for vm_clock_seqlock.
  */
 void cpu_enable_ticks(void)
 {
@@ -260,7 +260,7 @@ void cpu_enable_ticks(void)
 
 /* disable cpu_get_ticks() : the clock is stopped. You must not call
  * cpu_get_ticks() after that.
- * Caller must hold BQL which server as mutex for vm_clock_seqlock.
+ * Caller must hold BQL which serves as mutex for vm_clock_seqlock.
  */
 void cpu_disable_ticks(void)
 {
index e6c089e8b43b35262ca428b2117ddd6c763f53e4..4bfcd35560850a96eb3df3d70782a8d20763a9cd 100644 (file)
@@ -802,7 +802,7 @@ static inline int64_t get_max_clock_jump(void)
  * Low level clock functions
  */
 
-/* real time host monotonic timer */
+/* get host real time in nanosecond */
 static inline int64_t get_clock_realtime(void)
 {
     struct timeval tv;
This page took 0.043313 seconds and 4 git commands to generate.