Re: [PATCH] Use VIR_USE_CPU instead of new wheel

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

 



On 06/03/2011 10:47 PM, Eric Blake wrote:
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);
          }



Thanks, applied

Regards
Osier

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list


[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]