]> git.proxmox.com Git - qemu.git/commit - simpletrace.c
qemu-timer: move commonly used timer code to qemu-timer-common
authorBlue Swirl <blauwirbel@gmail.com>
Sat, 23 Oct 2010 15:24:07 +0000 (15:24 +0000)
committerBlue Swirl <blauwirbel@gmail.com>
Sat, 23 Oct 2010 15:24:07 +0000 (15:24 +0000)
commitc57c846a80f9306aa2c6cf7efdef45ed42723fac
tree42fc65ee94c4c97e824b85c6d5b8b757fb2327aa
parent2b2e59e6c95beff2248069b2b129ba8c92c5f4d3
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>
Makefile
Makefile.objs
block/raw-posix.c
hw/omap_clk.c
qemu-common.h
qemu-timer-common.c [new file with mode: 0644]
qemu-timer.c
qemu-timer.h
qemu-tool.c
simpletrace.c
vl.c