On Sun, Oct 17, 2010 at 01:50:33PM +0000, Blue Swirl wrote: > 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 <stefa...@linux.vnet.ibm.com> > Signed-off-by: Blue Swirl <blauwir...@gmail.com> > --- > Makefile | 6 ++-- > Makefile.objs | 3 +- > block/raw-posix.c | 12 ++++---- > hw/omap_clk.c | 1 + > qemu-common.h | 2 - > qemu-timer-common.c | 62 ++++++++++++++++++++++++++++++++++++++++++ > qemu-timer.c | 73 -------------------------------------------------- > qemu-timer.h | 74 > +++++++++++++++++++++++++++++++++++++++++++++++++++ > qemu-tool.c | 7 ----- > simpletrace.c | 10 +----- > vl.c | 24 ---------------- > 11 files changed, 150 insertions(+), 124 deletions(-) > create mode 100644 qemu-timer-common.c
Acked-by: Stefan Hajnoczi <stefa...@linux.vnet.ibm.com>