ia64/xen-unstable
changeset 11485:6ca1a8ebfdf4
[XEN] Scheduler pings only CPUs in a VCPU's affinity mask to balance load.
Signed-off-by: Keir Fraser <keir@xensource.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
author | kaf24@firebug.cl.cam.ac.uk |
---|---|
date | Fri Sep 15 11:17:26 2006 +0100 (2006-09-15) |
parents | fc8ae086f706 |
children | fe5c178cdf2e |
files | xen/common/sched_credit.c |
line diff
1.1 --- a/xen/common/sched_credit.c Fri Sep 15 11:07:25 2006 +0100 1.2 +++ b/xen/common/sched_credit.c Fri Sep 15 11:17:26 2006 +0100 1.3 @@ -290,6 +290,7 @@ static inline void 1.4 { 1.5 CSCHED_STAT_CRANK(tickle_idlers_some); 1.6 cpus_or(mask, mask, csched_priv.idlers); 1.7 + cpus_and(mask, mask, new->vcpu->cpu_affinity); 1.8 } 1.9 } 1.10 1.11 @@ -1001,6 +1002,7 @@ csched_load_balance(int cpu, struct csch 1.12 } 1.13 else if ( is_idle_vcpu(per_cpu(schedule_data, peer_cpu).curr) ) 1.14 { 1.15 + CSCHED_STAT_CRANK(steal_peer_idle); 1.16 speer = NULL; 1.17 } 1.18 else