From: Keir Fraser Date: Mon, 19 Apr 2010 10:30:51 +0000 (+0100) Subject: Cleanups to cpu_disable_scheduler(). X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~12342 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=d4f61a069a59d65d5b255485d1c656040821dcb4;p=xen.git Cleanups to cpu_disable_scheduler(). Signed-off-by: Keir Fraser --- diff --git a/xen/common/schedule.c b/xen/common/schedule.c index f335f645ec..3fb5255330 100644 --- a/xen/common/schedule.c +++ b/xen/common/schedule.c @@ -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) ) {