qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] Re: [PATCH] qemu-timer: move commonly used timer code to qe


From: Stefan Hajnoczi
Subject: [Qemu-devel] Re: [PATCH] qemu-timer: move commonly used timer code to qemu-timer-common
Date: Mon, 18 Oct 2010 11:42:34 +0100
User-agent: Mutt/1.5.20 (2009-06-14)

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 <address@hidden>
> Signed-off-by: Blue Swirl <address@hidden>
> ---
>  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 <address@hidden>



reply via email to

[Prev in Thread] Current Thread [Next in Thread]