diff options
author | kfraser@localhost.localdomain <kfraser@localhost.localdomain> | 2006-08-22 11:19:48 +0100 |
---|---|---|
committer | kfraser@localhost.localdomain <kfraser@localhost.localdomain> | 2006-08-22 11:19:48 +0100 |
commit | fe88c68919f1e12d726a34cad3ae9f114f93ab17 (patch) | |
tree | b94ab702e1cfd94c57682fb8d9d7296fb14dbd03 /xen/common/sched_sedf.c | |
parent | 9caa57d3c6711c54f07d8e17979893593f0d0cc8 (diff) | |
download | xen-fe88c68919f1e12d726a34cad3ae9f114f93ab17.tar.gz xen-fe88c68919f1e12d726a34cad3ae9f114f93ab17.tar.bz2 xen-fe88c68919f1e12d726a34cad3ae9f114f93ab17.zip |
[XEN] Clean up some x86 bootstrap code. Replace some CPU iterators
with for_each_cpu() -- we want to ensure that per_cpu areas are
accessed only for cpus in cpu_possible_map.
Signed-off-by: Keir Fraser <keir@xensource.com>
Diffstat (limited to 'xen/common/sched_sedf.c')
-rw-r--r-- | xen/common/sched_sedf.c | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/xen/common/sched_sedf.c b/xen/common/sched_sedf.c index 4f7d6380e9..f8913703ac 100644 --- a/xen/common/sched_sedf.c +++ b/xen/common/sched_sedf.c @@ -1301,16 +1301,9 @@ static int sedf_adjust_weights(struct sched_adjdom_cmd *cmd) { struct vcpu *p; struct domain *d; - int sumw[NR_CPUS]; - s_time_t sumt[NR_CPUS]; - int cpu; + int sumw[NR_CPUS] = { 0 }; + s_time_t sumt[NR_CPUS] = { 0 }; - for ( cpu = 0; cpu < NR_CPUS; cpu++ ) - { - sumw[cpu] = 0; - sumt[cpu] = 0; - } - /* Sum across all weights. */ for_each_domain( d ) { |