From f42d7a66bf44fdff582a4e2ff2c33e99a579c0d4 Mon Sep 17 00:00:00 2001 From: Juergen Gross Date: Fri, 18 Nov 2011 13:34:43 +0000 Subject: sched_sedf: Avoid panic when adjusting sedf parameters When using sedf scheduler in a cpupool the system might panic when setting sedf scheduling parameters for a domain. Introduces for_each_domain_in_cpupool macro as it is usable 4 times now. Add appropriate locking in cpupool_unassign_cpu(). Signed-off-by: Juergen Gross Committed-by: Keir Fraser --- xen/common/schedule.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'xen/common/schedule.c') diff --git a/xen/common/schedule.c b/xen/common/schedule.c index c07d6f0f98..0455619ac2 100644 --- a/xen/common/schedule.c +++ b/xen/common/schedule.c @@ -538,11 +538,8 @@ int cpu_disable_scheduler(unsigned int cpu) if ( c == NULL ) return ret; - for_each_domain ( d ) + for_each_domain_in_cpupool ( d, c ) { - if ( d->cpupool != c ) - continue; - affinity_broken = 0; for_each_vcpu ( d, v ) -- cgit v1.2.3