From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:49057) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bk6HC-0000r7-1v for qemu-devel@nongnu.org; Wed, 14 Sep 2016 05:14:42 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bk6H7-0003ju-UJ for qemu-devel@nongnu.org; Wed, 14 Sep 2016 05:14:41 -0400 From: Michael Tokarev Date: Wed, 14 Sep 2016 10:58:41 +0300 Message-Id: <5bf6ef20e190cb6189081f9abe7236ebc5836c41.1473839869.git.mjt@msgid.tls.msk.ru> In-Reply-To: References: In-Reply-To: References: Subject: [Qemu-devel] [PULL 15/27] cpus: rename local variable to meaningful one List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Cao jin , qemu-trivial@nongnu.org, Paolo Bonzini , Richard Henderson , Michael Tokarev From: Cao jin The function actually returns monotonic time value in nanosecond, the "ticks" is not suitable. Cc: Paolo Bonzini Cc Peter Crosthwaite Cc: Richard Henderson Signed-off-by: Cao jin Signed-off-by: Michael Tokarev --- cpus.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/cpus.c b/cpus.c index 0ab4ab1..a70b536 100644 --- a/cpus.c +++ b/cpus.c @@ -219,14 +219,14 @@ int64_t cpu_get_ticks(void) static int64_t cpu_get_clock_locked(void) { - int64_t ticks; + int64_t time; - ticks = timers_state.cpu_clock_offset; + time = timers_state.cpu_clock_offset; if (timers_state.cpu_ticks_enabled) { - ticks += get_clock(); + time += get_clock(); } - return ticks; + return time; } /* return the host CPU monotonic time */ -- 2.1.4