mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 03:27:44 -04:00
Merge branch 'linus' into idle-test
This commit is contained in:
commit
56dbed129d
5511 changed files with 414466 additions and 223180 deletions
|
|
@ -577,9 +577,7 @@ acpi_ns_init_one_device(acpi_handle obj_handle,
|
|||
* as possible (without an NMI being received in the middle of
|
||||
* this) - so disable NMIs and initialize the device:
|
||||
*/
|
||||
acpi_nmi_disable();
|
||||
status = acpi_ns_evaluate(info);
|
||||
acpi_nmi_enable();
|
||||
|
||||
if (ACPI_SUCCESS(status)) {
|
||||
walk_info->num_INI++;
|
||||
|
|
|
|||
|
|
@ -275,13 +275,23 @@ acpi_table_parse_srat(enum acpi_srat_type id,
|
|||
int __init acpi_numa_init(void)
|
||||
{
|
||||
int ret = 0;
|
||||
int nr_cpu_entries = nr_cpu_ids;
|
||||
|
||||
#ifdef CONFIG_X86
|
||||
/*
|
||||
* Should not limit number with cpu num that is from NR_CPUS or nr_cpus=
|
||||
* SRAT cpu entries could have different order with that in MADT.
|
||||
* So go over all cpu entries in SRAT to get apicid to node mapping.
|
||||
*/
|
||||
nr_cpu_entries = MAX_LOCAL_APIC;
|
||||
#endif
|
||||
|
||||
/* SRAT: Static Resource Affinity Table */
|
||||
if (!acpi_table_parse(ACPI_SIG_SRAT, acpi_parse_srat)) {
|
||||
acpi_table_parse_srat(ACPI_SRAT_TYPE_X2APIC_CPU_AFFINITY,
|
||||
acpi_parse_x2apic_affinity, nr_cpu_ids);
|
||||
acpi_parse_x2apic_affinity, nr_cpu_entries);
|
||||
acpi_table_parse_srat(ACPI_SRAT_TYPE_CPU_AFFINITY,
|
||||
acpi_parse_processor_affinity, nr_cpu_ids);
|
||||
acpi_parse_processor_affinity, nr_cpu_entries);
|
||||
ret = acpi_table_parse_srat(ACPI_SRAT_TYPE_MEMORY_AFFINITY,
|
||||
acpi_parse_memory_affinity,
|
||||
NR_NODE_MEMBLKS);
|
||||
|
|
|
|||
|
|
@ -753,7 +753,7 @@ static int acpi_idle_enter_c1(struct cpuidle_device *dev,
|
|||
struct acpi_processor *pr;
|
||||
struct acpi_processor_cx *cx = cpuidle_get_statedata(state);
|
||||
|
||||
pr = __get_cpu_var(processors);
|
||||
pr = __this_cpu_read(processors);
|
||||
|
||||
if (unlikely(!pr))
|
||||
return 0;
|
||||
|
|
@ -794,7 +794,7 @@ static int acpi_idle_enter_simple(struct cpuidle_device *dev,
|
|||
s64 idle_time_ns;
|
||||
s64 idle_time;
|
||||
|
||||
pr = __get_cpu_var(processors);
|
||||
pr = __this_cpu_read(processors);
|
||||
|
||||
if (unlikely(!pr))
|
||||
return 0;
|
||||
|
|
@ -871,7 +871,7 @@ static int acpi_idle_enter_bm(struct cpuidle_device *dev,
|
|||
s64 idle_time;
|
||||
|
||||
|
||||
pr = __get_cpu_var(processors);
|
||||
pr = __this_cpu_read(processors);
|
||||
|
||||
if (unlikely(!pr))
|
||||
return 0;
|
||||
|
|
|
|||
Loading…
Reference in a new issue