diff options
author | Blue Swirl | 2010-10-23 17:24:07 +0200 |
---|---|---|
committer | Blue Swirl | 2010-10-23 17:24:07 +0200 |
commit | c57c846a80f9306aa2c6cf7efdef45ed42723fac (patch) | |
tree | 42fc65ee94c4c97e824b85c6d5b8b757fb2327aa /qemu-io.c | |
parent | rewrite i386 tests Makefile (diff) | |
download | qemu-c57c846a80f9306aa2c6cf7efdef45ed42723fac.tar.gz qemu-c57c846a80f9306aa2c6cf7efdef45ed42723fac.tar.xz qemu-c57c846a80f9306aa2c6cf7efdef45ed42723fac.zip |
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 <stefanha@linux.vnet.ibm.com>
Acked-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
Diffstat (limited to 'qemu-io.c')
0 files changed, 0 insertions, 0 deletions