Received: from [140.186.70.92] (port=37779 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PySF1-0006QO-8O for qemu-devel@nongnu.org; Sat, 12 Mar 2011 12:04:36 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PySF0-0000wx-8h for qemu-devel@nongnu.org; Sat, 12 Mar 2011 12:04:35 -0500 Received: from mail-ww0-f53.google.com ([74.125.82.53]:52092) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PySEz-0000uO-Kv for qemu-devel@nongnu.org; Sat, 12 Mar 2011 12:04:34 -0500 Received: by mail-ww0-f53.google.com with SMTP id 40so4603790wwj.10 for ; Sat, 12 Mar 2011 09:04:33 -0800 (PST) Sender: Paolo Bonzini From: Paolo Bonzini Date: Sat, 12 Mar 2011 18:04:20 +0100 Message-Id: <1299949460-4387-6-git-send-email-pbonzini@redhat.com> In-Reply-To: <1299949460-4387-1-git-send-email-pbonzini@redhat.com> References: <1299949460-4387-1-git-send-email-pbonzini@redhat.com> Subject: [Qemu-devel] [RFC PATCH 5/5] remove qemu_get_clock List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org These patches are already not doing a great service to out-of-tree modifications to QEMU. However, at least we can warn them by getting rid of the old confusing functions, or otherwise causing compilation errors. This patch removes qemu_get_clock; the previous one changed qemu_new_timer's signature. Signed-off-by: Paolo Bonzini --- qemu-timer.c | 17 ----------------- qemu-timer.h | 1 - 2 files changed, 0 insertions(+), 18 deletions(-) diff --git a/qemu-timer.c b/qemu-timer.c index 1aed535..f6e059f 100644 --- a/qemu-timer.c +++ b/qemu-timer.c @@ -511,23 +511,6 @@ static void qemu_run_timers(QEMUClock *clock) } } -int64_t qemu_get_clock(QEMUClock *clock) -{ - switch(clock->type) { - case QEMU_CLOCK_REALTIME: - return get_clock() / 1000000; - default: - case QEMU_CLOCK_VIRTUAL: - if (use_icount) { - return cpu_get_icount(); - } else { - return cpu_get_clock(); - } - case QEMU_CLOCK_HOST: - return get_clock_realtime(); - } -} - int64_t qemu_get_clock_ns(QEMUClock *clock) { switch(clock->type) { diff --git a/qemu-timer.h b/qemu-timer.h index 0ea77fb..75d5675 100644 --- a/qemu-timer.h +++ b/qemu-timer.h @@ -37,7 +37,6 @@ extern QEMUClock *vm_clock; the virtual clock. */ extern QEMUClock *host_clock; -int64_t qemu_get_clock(QEMUClock *clock); int64_t qemu_get_clock_ns(QEMUClock *clock); void qemu_clock_enable(QEMUClock *clock, int enabled); -- 1.7.4