1 --- a/xen/arch/x86/platform_hypercall.c 2009-07-23 07:26:18.000000000 +0000
2 +++ b/xen/arch/x86/platform_hypercall.c 2009-07-23 07:28:30.000000000 +0000
6 uint64_t idletime, now = NOW();
8 struct xenctl_cpumap ctlmap;
10 XEN_GUEST_HANDLE(uint8) cpumap_bitmap;
13 for_each_cpu_mask ( cpu, cpumap )
15 - if ( (v = idle_vcpu[cpu]) != NULL )
16 + if ( !idle_vcpu[cpu] )
17 cpu_clear(cpu, cpumap);
18 idletime = get_cpu_idle_time(cpu);