aboutsummaryrefslogtreecommitdiff
path: root/cpus.c
diff options
context:
space:
mode:
authorCao jin <caoj.fnst@cn.fujitsu.com>2016-07-08 18:31:37 +0800
committerMichael Tokarev <mjt@gandalf>2016-09-13 18:12:34 +0300
commit3224e8786fcbe531746f1530c37210c425625213 (patch)
treee853648829d5a7e2649bf2217d8f324d6f2b41f4 /cpus.c
parent04ecbb783441d5d51587d23bad1c0a7b8ce27193 (diff)
timer/cpus: fix some typos and update some comments
Signed-off-by: Cao jin <caoj.fnst@cn.fujitsu.com> Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
Diffstat (limited to 'cpus.c')
-rw-r--r--cpus.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/cpus.c b/cpus.c
index 84c3520d44..0ab4ab1ef2 100644
--- 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)
{