]> xenbits.xensource.com Git - xen.git/commitdiff
Cleanups to cpu_disable_scheduler().
authorKeir Fraser <keir.fraser@citrix.com>
Mon, 19 Apr 2010 10:30:51 +0000 (11:30 +0100)
committerKeir Fraser <keir.fraser@citrix.com>
Mon, 19 Apr 2010 10:30:51 +0000 (11:30 +0100)
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
xen/common/schedule.c

index f335f645ec619463db8d4f5c4dc3d9ceb357c61e..3fb5255330ac5b3f99bf8901d815248c3384d0b9 100644 (file)
@@ -370,7 +370,7 @@ void vcpu_force_reschedule(struct vcpu *v)
 
 /*
  * 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) )
             {