qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] [PATCH v2 5/7] util: Move throttle.c out to top level


From: Paolo Bonzini
Subject: Re: [Qemu-devel] [PATCH v2 5/7] util: Move throttle.c out to top level
Date: Mon, 25 Aug 2014 15:22:44 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.7.0

Il 22/08/2014 12:54, Fam Zheng ha scritto:
> It is only used by block code and has dependency on timers, so move it
> out to allow util to be linked unconditionally.
> 
> Signed-off-by: Fam Zheng <address@hidden>
> ---
>  Makefile.objs                 | 2 +-
>  util/throttle.c => throttle.c | 0
>  util/Makefile.objs            | 1 -
>  3 files changed, 1 insertion(+), 2 deletions(-)
>  rename util/throttle.c => throttle.c (100%)
> 
> diff --git a/Makefile.objs b/Makefile.objs
> index 97db978..6445ce9 100644
> --- a/Makefile.objs
> +++ b/Makefile.objs
> @@ -7,7 +7,7 @@ util-obj-y = util/ qobject/ qapi/ qapi-types.o qapi-visit.o 
> qapi-event.o
>  # block-obj-y is code used by both qemu system emulation and qemu-img
>  
>  block-obj-y = async.o thread-pool.o
> -block-obj-y += nbd.o block.o blockjob.o
> +block-obj-y += nbd.o block.o blockjob.o throttle.o
>  block-obj-y += main-loop.o iohandler.o qemu-timer.o
>  block-obj-$(CONFIG_POSIX) += aio-posix.o
>  block-obj-$(CONFIG_WIN32) += aio-win32.o
> diff --git a/util/throttle.c b/throttle.c
> similarity index 100%
> rename from util/throttle.c
> rename to throttle.c
> diff --git a/util/Makefile.objs b/util/Makefile.objs
> index 65a36f6..5940acc 100644
> --- a/util/Makefile.objs
> +++ b/util/Makefile.objs
> @@ -10,7 +10,6 @@ util-obj-y += iov.o aes.o qemu-config.o qemu-sockets.o 
> uri.o notify.o
>  util-obj-y += qemu-option.o qemu-progress.o
>  util-obj-y += hexdump.o
>  util-obj-y += crc32c.o
> -util-obj-y += throttle.o
>  util-obj-y += getauxval.o
>  util-obj-y += readline.o
>  util-obj-y += rfifolock.o
> 

Reviewed-by: Paolo Bonzini <address@hidden>

Stefan, would you pick this up in the block branch already?

Paolo



reply via email to

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