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

[Xen-changelog] [xen-unstable] Cleanups to cpu_disable_scheduler().



# HG changeset patch
# User Keir Fraser <keir.fraser@xxxxxxxxxx>
# Date 1271673051 -3600
# Node ID 6ed67e488830f81e11d7b6d0c011a0bc5c176929
# Parent  700da767f797c49f06ae3e19a55ab6d40342b986
Cleanups to cpu_disable_scheduler().

Signed-off-by: Keir Fraser <keir.fraser@xxxxxxxxxx>
---
 xen/common/schedule.c |    5 +----
 1 files changed, 1 insertion(+), 4 deletions(-)

diff -r 700da767f797 -r 6ed67e488830 xen/common/schedule.c
--- a/xen/common/schedule.c     Mon Apr 19 11:16:06 2010 +0100
+++ b/xen/common/schedule.c     Mon Apr 19 11:30:51 2010 +0100
@@ -370,7 +370,7 @@ void vcpu_force_reschedule(struct vcpu *
 
 /*
  * This function is used by cpu_hotplug code from stop_machine context.
- * Hence we can avoid needing to take the 
+ * Hence we can avoid needing to take certain locks.
  */
 void cpu_disable_scheduler(void)
 {
@@ -382,9 +382,6 @@ void cpu_disable_scheduler(void)
     {
         for_each_vcpu ( d, v )
         {
-            if ( is_idle_vcpu(v) )
-                continue;
-
             if ( (cpus_weight(v->cpu_affinity) == 1) &&
                  cpu_isset(cpu, v->cpu_affinity) )
             {

_______________________________________________
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®.