aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/acpi/processor_throttling.c
diff options
context:
space:
mode:
authorMike Travis <travis@sgi.com>2008-05-12 15:21:13 -0400
committerThomas Gleixner <tglx@linutronix.de>2008-05-23 12:35:12 -0400
commit141ad0688adb53094d6f75b39b4b3b0625de0e07 (patch)
tree94a044be55a5ae58f3f916d7c85c93f1fb97acbf /drivers/acpi/processor_throttling.c
parent41df0d61c266998b8049df7fec119cd518a43aa1 (diff)
acpi: use performance variant for_each_cpu_mask_nr
Change references from for_each_cpu_mask to for_each_cpu_mask_nr where appropriate Reviewed-by: Paul Jackson <pj@sgi.com> Reviewed-by: Christoph Lameter <clameter@sgi.com> Signed-off-by: Mike Travis <travis@sgi.com> Signed-off-by: Ingo Molnar <mingo@elte.hu> Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'drivers/acpi/processor_throttling.c')
-rw-r--r--drivers/acpi/processor_throttling.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/acpi/processor_throttling.c b/drivers/acpi/processor_throttling.c
index bb06738860c4..28509fbba6f9 100644
--- a/drivers/acpi/processor_throttling.c
+++ b/drivers/acpi/processor_throttling.c
@@ -1013,7 +1013,7 @@ int acpi_processor_set_throttling(struct acpi_processor *pr, int state)
1013 * affected cpu in order to get one proper T-state. 1013 * affected cpu in order to get one proper T-state.
1014 * The notifier event is THROTTLING_PRECHANGE. 1014 * The notifier event is THROTTLING_PRECHANGE.
1015 */ 1015 */
1016 for_each_cpu_mask(i, online_throttling_cpus) { 1016 for_each_cpu_mask_nr(i, online_throttling_cpus) {
1017 t_state.cpu = i; 1017 t_state.cpu = i;
1018 acpi_processor_throttling_notifier(THROTTLING_PRECHANGE, 1018 acpi_processor_throttling_notifier(THROTTLING_PRECHANGE,
1019 &t_state); 1019 &t_state);
@@ -1034,7 +1034,7 @@ int acpi_processor_set_throttling(struct acpi_processor *pr, int state)
1034 * it is necessary to set T-state for every affected 1034 * it is necessary to set T-state for every affected
1035 * cpus. 1035 * cpus.
1036 */ 1036 */
1037 for_each_cpu_mask(i, online_throttling_cpus) { 1037 for_each_cpu_mask_nr(i, online_throttling_cpus) {
1038 match_pr = processors[i]; 1038 match_pr = processors[i];
1039 /* 1039 /*
1040 * If the pointer is invalid, we will report the 1040 * If the pointer is invalid, we will report the
@@ -1068,7 +1068,7 @@ int acpi_processor_set_throttling(struct acpi_processor *pr, int state)
1068 * affected cpu to update the T-states. 1068 * affected cpu to update the T-states.
1069 * The notifier event is THROTTLING_POSTCHANGE 1069 * The notifier event is THROTTLING_POSTCHANGE
1070 */ 1070 */
1071 for_each_cpu_mask(i, online_throttling_cpus) { 1071 for_each_cpu_mask_nr(i, online_throttling_cpus) {
1072 t_state.cpu = i; 1072 t_state.cpu = i;
1073 acpi_processor_throttling_notifier(THROTTLING_POSTCHANGE, 1073 acpi_processor_throttling_notifier(THROTTLING_POSTCHANGE,
1074 &t_state); 1074 &t_state);