diff options
author | Len Brown <len.brown@intel.com> | 2011-01-12 18:06:06 -0500 |
---|---|---|
committer | Len Brown <len.brown@intel.com> | 2011-01-12 18:06:06 -0500 |
commit | 56dbed129df3fdd4caf9018b6e7599ee258a5420 (patch) | |
tree | b902491aef3a99efe0d9d49edd0f6e414dba654f /drivers/acpi | |
parent | 2a2d31c8dc6f1ebcf5eab1d93a0cb0fb4ed57c7c (diff) | |
parent | f878133bf022717b880d0e0995b8f91436fd605c (diff) |
Merge branch 'linus' into idle-test
Diffstat (limited to 'drivers/acpi')
-rw-r--r-- | drivers/acpi/acpica/nsinit.c | 2 | ||||
-rw-r--r-- | drivers/acpi/numa.c | 14 | ||||
-rw-r--r-- | drivers/acpi/processor_idle.c | 6 |
3 files changed, 15 insertions, 7 deletions
diff --git a/drivers/acpi/acpica/nsinit.c b/drivers/acpi/acpica/nsinit.c index 660a2728908d..0cac7ec0d2ec 100644 --- a/drivers/acpi/acpica/nsinit.c +++ b/drivers/acpi/acpica/nsinit.c | |||
@@ -577,9 +577,7 @@ acpi_ns_init_one_device(acpi_handle obj_handle, | |||
577 | * as possible (without an NMI being received in the middle of | 577 | * as possible (without an NMI being received in the middle of |
578 | * this) - so disable NMIs and initialize the device: | 578 | * this) - so disable NMIs and initialize the device: |
579 | */ | 579 | */ |
580 | acpi_nmi_disable(); | ||
581 | status = acpi_ns_evaluate(info); | 580 | status = acpi_ns_evaluate(info); |
582 | acpi_nmi_enable(); | ||
583 | 581 | ||
584 | if (ACPI_SUCCESS(status)) { | 582 | if (ACPI_SUCCESS(status)) { |
585 | walk_info->num_INI++; | 583 | walk_info->num_INI++; |
diff --git a/drivers/acpi/numa.c b/drivers/acpi/numa.c index 5718566e00f9..d9926afec110 100644 --- a/drivers/acpi/numa.c +++ b/drivers/acpi/numa.c | |||
@@ -275,13 +275,23 @@ acpi_table_parse_srat(enum acpi_srat_type id, | |||
275 | int __init acpi_numa_init(void) | 275 | int __init acpi_numa_init(void) |
276 | { | 276 | { |
277 | int ret = 0; | 277 | int ret = 0; |
278 | int nr_cpu_entries = nr_cpu_ids; | ||
279 | |||
280 | #ifdef CONFIG_X86 | ||
281 | /* | ||
282 | * Should not limit number with cpu num that is from NR_CPUS or nr_cpus= | ||
283 | * SRAT cpu entries could have different order with that in MADT. | ||
284 | * So go over all cpu entries in SRAT to get apicid to node mapping. | ||
285 | */ | ||
286 | nr_cpu_entries = MAX_LOCAL_APIC; | ||
287 | #endif | ||
278 | 288 | ||
279 | /* SRAT: Static Resource Affinity Table */ | 289 | /* SRAT: Static Resource Affinity Table */ |
280 | if (!acpi_table_parse(ACPI_SIG_SRAT, acpi_parse_srat)) { | 290 | if (!acpi_table_parse(ACPI_SIG_SRAT, acpi_parse_srat)) { |
281 | acpi_table_parse_srat(ACPI_SRAT_TYPE_X2APIC_CPU_AFFINITY, | 291 | acpi_table_parse_srat(ACPI_SRAT_TYPE_X2APIC_CPU_AFFINITY, |
282 | acpi_parse_x2apic_affinity, nr_cpu_ids); | 292 | acpi_parse_x2apic_affinity, nr_cpu_entries); |
283 | acpi_table_parse_srat(ACPI_SRAT_TYPE_CPU_AFFINITY, | 293 | acpi_table_parse_srat(ACPI_SRAT_TYPE_CPU_AFFINITY, |
284 | acpi_parse_processor_affinity, nr_cpu_ids); | 294 | acpi_parse_processor_affinity, nr_cpu_entries); |
285 | ret = acpi_table_parse_srat(ACPI_SRAT_TYPE_MEMORY_AFFINITY, | 295 | ret = acpi_table_parse_srat(ACPI_SRAT_TYPE_MEMORY_AFFINITY, |
286 | acpi_parse_memory_affinity, | 296 | acpi_parse_memory_affinity, |
287 | NR_NODE_MEMBLKS); | 297 | NR_NODE_MEMBLKS); |
diff --git a/drivers/acpi/processor_idle.c b/drivers/acpi/processor_idle.c index 70599d2ada61..d615b7d69bca 100644 --- a/drivers/acpi/processor_idle.c +++ b/drivers/acpi/processor_idle.c | |||
@@ -753,7 +753,7 @@ static int acpi_idle_enter_c1(struct cpuidle_device *dev, | |||
753 | struct acpi_processor *pr; | 753 | struct acpi_processor *pr; |
754 | struct acpi_processor_cx *cx = cpuidle_get_statedata(state); | 754 | struct acpi_processor_cx *cx = cpuidle_get_statedata(state); |
755 | 755 | ||
756 | pr = __get_cpu_var(processors); | 756 | pr = __this_cpu_read(processors); |
757 | 757 | ||
758 | if (unlikely(!pr)) | 758 | if (unlikely(!pr)) |
759 | return 0; | 759 | return 0; |
@@ -794,7 +794,7 @@ static int acpi_idle_enter_simple(struct cpuidle_device *dev, | |||
794 | s64 idle_time_ns; | 794 | s64 idle_time_ns; |
795 | s64 idle_time; | 795 | s64 idle_time; |
796 | 796 | ||
797 | pr = __get_cpu_var(processors); | 797 | pr = __this_cpu_read(processors); |
798 | 798 | ||
799 | if (unlikely(!pr)) | 799 | if (unlikely(!pr)) |
800 | return 0; | 800 | return 0; |
@@ -871,7 +871,7 @@ static int acpi_idle_enter_bm(struct cpuidle_device *dev, | |||
871 | s64 idle_time; | 871 | s64 idle_time; |
872 | 872 | ||
873 | 873 | ||
874 | pr = __get_cpu_var(processors); | 874 | pr = __this_cpu_read(processors); |
875 | 875 | ||
876 | if (unlikely(!pr)) | 876 | if (unlikely(!pr)) |
877 | return 0; | 877 | return 0; |