ia64/xen-unstable

changeset 19703:3ee4e1884c4e

x86: Fix XENPF_getidletime to correctly modify cpumask.

Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
author Keir Fraser <keir.fraser@citrix.com>
date Wed Jun 03 11:17:00 2009 +0100 (2009-06-03)
parents c5fb6374e79f
children ffcc665158ae
files xen/arch/x86/platform_hypercall.c
line diff
     1.1 --- a/xen/arch/x86/platform_hypercall.c	Wed Jun 03 11:11:50 2009 +0100
     1.2 +++ b/xen/arch/x86/platform_hypercall.c	Wed Jun 03 11:17:00 2009 +0100
     1.3 @@ -313,7 +313,6 @@ ret_t do_platform_op(XEN_GUEST_HANDLE(xe
     1.4      {
     1.5          uint32_t cpu;
     1.6          uint64_t idletime, now = NOW();
     1.7 -        struct vcpu *v;
     1.8          struct xenctl_cpumap ctlmap;
     1.9          cpumask_t cpumap;
    1.10          XEN_GUEST_HANDLE(uint8) cpumap_bitmap;
    1.11 @@ -336,7 +335,7 @@ ret_t do_platform_op(XEN_GUEST_HANDLE(xe
    1.12  
    1.13          for_each_cpu_mask ( cpu, cpumap )
    1.14          {
    1.15 -            if ( (v = idle_vcpu[cpu]) != NULL )
    1.16 +            if ( idle_vcpu[cpu] == NULL )
    1.17                  cpu_clear(cpu, cpumap);
    1.18              idletime = get_cpu_idle_time(cpu);
    1.19