Received: from eggs.gnu.org ([2001:4830:134:3::10]:33406) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bjrLJ-00086J-0T for qemu-devel@nongnu.org; Tue, 13 Sep 2016 13:17:59 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bjrLD-0005Ly-Uv for qemu-devel@nongnu.org; Tue, 13 Sep 2016 13:17:55 -0400 Received: from mail-wm0-f68.google.com ([74.125.82.68]:35866) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bjrLD-0005Lb-PR for qemu-devel@nongnu.org; Tue, 13 Sep 2016 13:17:51 -0400 Received: by mail-wm0-f68.google.com with SMTP id b184so3336332wma.3 for ; Tue, 13 Sep 2016 10:17:51 -0700 (PDT) Sender: Paolo Bonzini From: Paolo Bonzini Date: Tue, 13 Sep 2016 19:15:46 +0200 Message-Id: <1473786989-54823-16-git-send-email-pbonzini@redhat.com> In-Reply-To: <1473786989-54823-1-git-send-email-pbonzini@redhat.com> References: <1473786989-54823-1-git-send-email-pbonzini@redhat.com> Subject: [Qemu-devel] [PULL 15/58] 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 , Richard Henderson 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 Message-Id: <1469790338-28990-3-git-send-email-caoj.fnst@cn.fujitsu.com> Signed-off-by: Paolo Bonzini --- cpus.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/cpus.c b/cpus.c index 84c3520..e11caf7 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 timer and handle stop/restart */ -- 1.8.3.1