[libvirt] [PATCH] Use VIR_USE_CPU instead of new wheel

Eric Blake eblake at redhat.com
Fri Jun 3 14:47:05 UTC 2011


On 06/02/2011 03:45 AM, Osier Yang wrote:
> * src/libxl/libxl_driver.c
> * src/qemu/qemu_process.c
> ---
>  src/libxl/libxl_driver.c |    7 ++-----
>  src/qemu/qemu_process.c  |   13 ++-----------
>  2 files changed, 4 insertions(+), 16 deletions(-)

ACK.  Trivial cleanup, so safe for 0.9.2.

>          for (i = 0; i < VIR_DOMAIN_CPUMASK_LEN; ++i) {
> -            if (cpumask[i]) {
> -                pos = i / 8;
> -                cpumap[pos] |= 1 << (i % 8);
> -            }
> +            if (cpumask[i])
> +                VIR_USE_CPU(cpumap, i);
>          }
>  

-- 
Eric Blake   eblake at redhat.com    +1-801-349-2682
Libvirt virtualization library http://libvirt.org

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 619 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20110603/f6d4c0cf/attachment-0001.sig>


More information about the libvir-list mailing list