Skip to content

Commit

Permalink
Merge back cpufreq fixes for v5.6.
Browse files Browse the repository at this point in the history
  • Loading branch information
Rafael J. Wysocki committed Jan 13, 2020
2 parents c936069 + 80e8b1e commit 2c7a8bd
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions drivers/cpufreq/cppc_cpufreq.c
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
static struct cppc_cpudata **all_cpu_data;

struct cppc_workaround_oem_info {
char oem_id[ACPI_OEM_ID_SIZE +1];
char oem_id[ACPI_OEM_ID_SIZE + 1];
char oem_table_id[ACPI_OEM_TABLE_ID_SIZE + 1];
u32 oem_revision;
};
Expand Down Expand Up @@ -93,9 +93,13 @@ static void cppc_check_hisi_workaround(void)
for (i = 0; i < ARRAY_SIZE(wa_info); i++) {
if (!memcmp(wa_info[i].oem_id, tbl->oem_id, ACPI_OEM_ID_SIZE) &&
!memcmp(wa_info[i].oem_table_id, tbl->oem_table_id, ACPI_OEM_TABLE_ID_SIZE) &&
wa_info[i].oem_revision == tbl->oem_revision)
wa_info[i].oem_revision == tbl->oem_revision) {
apply_hisi_workaround = true;
break;
}
}

acpi_put_table(tbl);
}

/* Callback function used to retrieve the max frequency from DMI */
Expand Down

0 comments on commit 2c7a8bd

Please sign in to comment.