mirror of https://gitee.com/openkylin/linux.git
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>
This commit is contained in:
parent
41df0d61c2
commit
141ad0688a
|
@ -1013,7 +1013,7 @@ int acpi_processor_set_throttling(struct acpi_processor *pr, int state)
|
||||||
* affected cpu in order to get one proper T-state.
|
* affected cpu in order to get one proper T-state.
|
||||||
* The notifier event is THROTTLING_PRECHANGE.
|
* The notifier event is THROTTLING_PRECHANGE.
|
||||||
*/
|
*/
|
||||||
for_each_cpu_mask(i, online_throttling_cpus) {
|
for_each_cpu_mask_nr(i, online_throttling_cpus) {
|
||||||
t_state.cpu = i;
|
t_state.cpu = i;
|
||||||
acpi_processor_throttling_notifier(THROTTLING_PRECHANGE,
|
acpi_processor_throttling_notifier(THROTTLING_PRECHANGE,
|
||||||
&t_state);
|
&t_state);
|
||||||
|
@ -1034,7 +1034,7 @@ int acpi_processor_set_throttling(struct acpi_processor *pr, int state)
|
||||||
* it is necessary to set T-state for every affected
|
* it is necessary to set T-state for every affected
|
||||||
* cpus.
|
* cpus.
|
||||||
*/
|
*/
|
||||||
for_each_cpu_mask(i, online_throttling_cpus) {
|
for_each_cpu_mask_nr(i, online_throttling_cpus) {
|
||||||
match_pr = processors[i];
|
match_pr = processors[i];
|
||||||
/*
|
/*
|
||||||
* If the pointer is invalid, we will report the
|
* If the pointer is invalid, we will report the
|
||||||
|
@ -1068,7 +1068,7 @@ int acpi_processor_set_throttling(struct acpi_processor *pr, int state)
|
||||||
* affected cpu to update the T-states.
|
* affected cpu to update the T-states.
|
||||||
* The notifier event is THROTTLING_POSTCHANGE
|
* The notifier event is THROTTLING_POSTCHANGE
|
||||||
*/
|
*/
|
||||||
for_each_cpu_mask(i, online_throttling_cpus) {
|
for_each_cpu_mask_nr(i, online_throttling_cpus) {
|
||||||
t_state.cpu = i;
|
t_state.cpu = i;
|
||||||
acpi_processor_throttling_notifier(THROTTLING_POSTCHANGE,
|
acpi_processor_throttling_notifier(THROTTLING_POSTCHANGE,
|
||||||
&t_state);
|
&t_state);
|
||||||
|
|
Loading…
Reference in New Issue