[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [xen-unstable] x86: Fix XENPF_getidletime to correctly modify cpumask.
# HG changeset patch # User Keir Fraser <keir.fraser@xxxxxxxxxx> # Date 1244024220 -3600 # Node ID 3ee4e1884c4ea0139c9abb0fe820330564a55987 # Parent c5fb6374e79fba152e149cdd55a5744d43762667 x86: Fix XENPF_getidletime to correctly modify cpumask. Signed-off-by: Keir Fraser <keir.fraser@xxxxxxxxxx> --- xen/arch/x86/platform_hypercall.c | 3 +-- 1 files changed, 1 insertion(+), 2 deletions(-) diff -r c5fb6374e79f -r 3ee4e1884c4e xen/arch/x86/platform_hypercall.c --- a/xen/arch/x86/platform_hypercall.c Wed Jun 03 11:11:50 2009 +0100 +++ b/xen/arch/x86/platform_hypercall.c Wed Jun 03 11:17:00 2009 +0100 @@ -313,7 +313,6 @@ ret_t do_platform_op(XEN_GUEST_HANDLE(xe { uint32_t cpu; uint64_t idletime, now = NOW(); - struct vcpu *v; struct xenctl_cpumap ctlmap; cpumask_t cpumap; XEN_GUEST_HANDLE(uint8) cpumap_bitmap; @@ -336,7 +335,7 @@ ret_t do_platform_op(XEN_GUEST_HANDLE(xe for_each_cpu_mask ( cpu, cpumap ) { - if ( (v = idle_vcpu[cpu]) != NULL ) + if ( idle_vcpu[cpu] == NULL ) cpu_clear(cpu, cpumap); idletime = get_cpu_idle_time(cpu); _______________________________________________ Xen-changelog mailing list Xen-changelog@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-changelog
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |