diff options
author | Jan Beulich <jbeulich@suse.com> | 2011-11-08 10:36:10 +0100 |
---|---|---|
committer | Jan Beulich <jbeulich@suse.com> | 2011-11-08 10:36:10 +0100 |
commit | 22bdce1c04881c0e909817ee11f7cecd6c852d8c (patch) | |
tree | 445ece053822f839c700f30d0159b4b73da68465 /xen/arch/x86/acpi/cpufreq | |
parent | fe9ff5a9d54cced306aefaba126340e0c596717e (diff) |
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/arch/x86/acpi/cpufreq')
-rw-r--r-- | xen/arch/x86/acpi/cpufreq/cpufreq.c | 2 | ||||
-rw-r--r-- | xen/arch/x86/acpi/cpufreq/powernow.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/xen/arch/x86/acpi/cpufreq/cpufreq.c b/xen/arch/x86/acpi/cpufreq/cpufreq.c index 5fb7cfae9e..b868f164ff 100644 --- a/xen/arch/x86/acpi/cpufreq/cpufreq.c +++ b/xen/arch/x86/acpi/cpufreq/cpufreq.c @@ -487,7 +487,7 @@ static int acpi_cpufreq_target(struct cpufreq_policy *policy, return -EAGAIN; } - for_each_cpu_mask(j, online_policy_cpus) + for_each_cpu(j, &online_policy_cpus) cpufreq_statistic_update(j, perf->state, next_perf_state); perf->state = next_perf_state; diff --git a/xen/arch/x86/acpi/cpufreq/powernow.c b/xen/arch/x86/acpi/cpufreq/powernow.c index 743321aac8..fb174fa771 100644 --- a/xen/arch/x86/acpi/cpufreq/powernow.c +++ b/xen/arch/x86/acpi/cpufreq/powernow.c @@ -130,7 +130,7 @@ static int powernow_cpufreq_target(struct cpufreq_policy *policy, on_selected_cpus(cmd.mask, transition_pstate, &cmd, 1); - for_each_cpu_mask(j, online_policy_cpus) + for_each_cpu(j, &online_policy_cpus) cpufreq_statistic_update(j, perf->state, next_perf_state); perf->state = next_perf_state; |