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

[Xen-changelog] [xen-3.4-testing] x86: Fix XENPF_getidletime to correctly modify cpumask.



# HG changeset patch
# User Keir Fraser <keir.fraser@xxxxxxxxxx>
# Date 1244038609 -3600
# Node ID 75a24d7db2819f214ebebcea57bb7c8262190241
# Parent  35a2fd9805f73d5f1c03d0b2257d5fe54c46a4f3
x86: Fix XENPF_getidletime to correctly modify cpumask.

Signed-off-by: Keir Fraser <keir.fraser@xxxxxxxxxx>
xen-unstable changeset:   19703:3ee4e1884c4e
xen-unstable date:        Wed Jun 03 11:17:00 2009 +0100
---
 xen/arch/x86/platform_hypercall.c |    3 +--
 1 files changed, 1 insertion(+), 2 deletions(-)

diff -r 35a2fd9805f7 -r 75a24d7db281 xen/arch/x86/platform_hypercall.c
--- a/xen/arch/x86/platform_hypercall.c Wed Jun 03 15:16:28 2009 +0100
+++ b/xen/arch/x86/platform_hypercall.c Wed Jun 03 15:16:49 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


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.