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(a)redhat.com +1-801-349-2682
Libvirt virtualization library
http://libvirt.org