From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:47705) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YAdfu-00089z-Ou for qemu-devel@nongnu.org; Mon, 12 Jan 2015 07:00:51 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YAdfu-0006qR-0Y for qemu-devel@nongnu.org; Mon, 12 Jan 2015 07:00:50 -0500 Received: from mail.ispras.ru ([83.149.199.45]:47896) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YAdft-0006qI-Po for qemu-devel@nongnu.org; Mon, 12 Jan 2015 07:00:49 -0500 From: Pavel Dovgalyuk Date: Mon, 12 Jan 2015 15:00:49 +0300 Message-ID: <20150112120049.3504.9405.stgit@PASHA-ISP> In-Reply-To: <20150112115944.3504.66763.stgit@PASHA-ISP> References: <20150112115944.3504.66763.stgit@PASHA-ISP> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Subject: [Qemu-devel] [RFC PATCH v7 11/21] timer: fix usage of clock functions List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: peter.maydell@linaro.org, peter.crosthwaite@xilinx.com, alex.bennee@linaro.org, mark.burton@greensocs.com, real@ispras.ru, batuzovk@ispras.ru, maria.klimushenkova@ispras.ru, pavel.dovgaluk@ispras.ru, pbonzini@redhat.com, afaerber@suse.de, fred.konrad@greensocs.com This patch replaces calling of get_clock_realtime() everywhere except the timer module. All calls are replaced with host clock requests. Patch also replaces get_clock() calls with realtime clock requests. Usage of this interface simplifies implementation of record/replay. Signed-off-by: Pavel Dovgalyuk --- pc-bios/s390-ccw/virtio.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/pc-bios/s390-ccw/virtio.c b/pc-bios/s390-ccw/virtio.c index c0540d1..f1867ba 100644 --- a/pc-bios/s390-ccw/virtio.c +++ b/pc-bios/s390-ccw/virtio.c @@ -164,7 +164,7 @@ static u64 get_clock(void) static ulong get_second(void) { - return (get_clock() >> 12) / 1000000; + return (qemu_clock_get_ns(QEMU_CLOCK_REALTIME) >> 12) / 1000000; } /*