From d4f61a069a59d65d5b255485d1c656040821dcb4 Mon Sep 17 00:00:00 2001 From: Keir Fraser Date: Mon, 19 Apr 2010 11:30:51 +0100 Subject: [PATCH] Cleanups to cpu_disable_scheduler(). Signed-off-by: Keir Fraser --- xen/common/schedule.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) 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) ) { -- 2.30.2