From c57c846a80f9306aa2c6cf7efdef45ed42723fac Mon Sep 17 00:00:00 2001 From: Blue Swirl Date: Sat, 23 Oct 2010 15:24:07 +0000 Subject: qemu-timer: move commonly used timer code to qemu-timer-common Move timer init functions to a new file, qemu-timer-common.c. Make other critical timer functions inlined to preserve performance in qemu-timer.c, also move muldiv64() (used by the inline functions) to qemu-timer.h. Adjust block/raw-posix.c and simpletrace.c to use get_clock() directly. Remove a similar/duplicate definition in qemu-tool.c. Adjust hw/omap_clk.c to include qemu-timer.h because muldiv64() is used there. After this change, tracing can be used also for user code and simpletrace on Win32. Cc: Stefan Hajnoczi Acked-by: Stefan Hajnoczi Signed-off-by: Blue Swirl --- qemu-common.h | 2 -- 1 file changed, 2 deletions(-) (limited to 'qemu-common.h') diff --git a/qemu-common.h b/qemu-common.h index d5ae42020e..2fbc27f9f0 100644 --- a/qemu-common.h +++ b/qemu-common.h @@ -133,8 +133,6 @@ void qemu_bh_delete(QEMUBH *bh); int qemu_bh_poll(void); void qemu_bh_update_timeout(int *timeout); -uint64_t muldiv64(uint64_t a, uint32_t b, uint32_t c); - void qemu_get_timedate(struct tm *tm, int offset); int qemu_timedate_diff(struct tm *tm); -- cgit v1.2.3