aboutsummaryrefslogtreecommitdiffstats
path: root/xen/drivers/cpufreq
diff options
context:
space:
mode:
authorJan Beulich <jbeulich@suse.com>2011-11-08 10:36:10 +0100
committerJan Beulich <jbeulich@suse.com>2011-11-08 10:36:10 +0100
commit22bdce1c04881c0e909817ee11f7cecd6c852d8c (patch)
tree445ece053822f839c700f30d0159b4b73da68465 /xen/drivers/cpufreq
parentfe9ff5a9d54cced306aefaba126340e0c596717e (diff)
downloadxen-22bdce1c04881c0e909817ee11f7cecd6c852d8c.tar.gz
xen-22bdce1c04881c0e909817ee11f7cecd6c852d8c.tar.bz2
xen-22bdce1c04881c0e909817ee11f7cecd6c852d8c.zip
eliminate first_cpu() etc
This includes the conversion from for_each_cpu_mask() to for_each-cpu(). Signed-off-by: Jan Beulich <jbeulich@suse.com> Acked-by: Keir Fraser <keir@xen.org> Acked-by: Andrew Cooper <andrew.cooper3@citrix.com>
Diffstat (limited to 'xen/drivers/cpufreq')
-rw-r--r--xen/drivers/cpufreq/cpufreq_ondemand.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/xen/drivers/cpufreq/cpufreq_ondemand.c b/xen/drivers/cpufreq/cpufreq_ondemand.c
index 4323cc5e9f..c9378adc4f 100644
--- a/xen/drivers/cpufreq/cpufreq_ondemand.c
+++ b/xen/drivers/cpufreq/cpufreq_ondemand.c
@@ -122,7 +122,7 @@ static void dbs_check_cpu(struct cpu_dbs_info_s *this_dbs_info)
return;
/* Get Idle Time */
- for_each_cpu_mask(j, *policy->cpus) {
+ for_each_cpu(j, policy->cpus) {
uint64_t idle_ns, total_idle_ns;
uint64_t load, load_freq, freq_avg;
struct cpu_dbs_info_s *j_dbs_info;
@@ -233,7 +233,7 @@ int cpufreq_governor_dbs(struct cpufreq_policy *policy, unsigned int event)
dbs_enable++;
- for_each_cpu_mask(j, *policy->cpus) {
+ for_each_cpu(j, policy->cpus) {
struct cpu_dbs_info_s *j_dbs_info;
j_dbs_info = &per_cpu(cpu_dbs_info, j);
j_dbs_info->cur_policy = policy;