Skip to content

Commit 5caa380

Browse files
committed
Merge tag 'acpi-6.19-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm
Pull ACPI fixes from Rafael Wysocki: "These add a missing PCC check for guaranteed_perf in the ACPI CPPC library and fix a static local variable access race condition in acpi_pcc_address_space_setup() (Pengjie Zhang)" * tag 'acpi-6.19-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm: ACPI: PCC: Fix race condition by removing static qualifier ACPI: CPPC: Fix missing PCC check for guaranteed_perf
2 parents eb23a11 + f103fa1 commit 5caa380

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

drivers/acpi/acpi_pcc.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ acpi_pcc_address_space_setup(acpi_handle region_handle, u32 function,
5252
struct pcc_data *data;
5353
struct acpi_pcc_info *ctx = handler_context;
5454
struct pcc_mbox_chan *pcc_chan;
55-
static acpi_status ret;
55+
acpi_status ret;
5656

5757
data = kzalloc(sizeof(*data), GFP_KERNEL);
5858
if (!data)

drivers/acpi/cppc_acpi.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1366,7 +1366,8 @@ int cppc_get_perf_caps(int cpunum, struct cppc_perf_caps *perf_caps)
13661366
/* Are any of the regs PCC ?*/
13671367
if (CPC_IN_PCC(highest_reg) || CPC_IN_PCC(lowest_reg) ||
13681368
CPC_IN_PCC(lowest_non_linear_reg) || CPC_IN_PCC(nominal_reg) ||
1369-
CPC_IN_PCC(low_freq_reg) || CPC_IN_PCC(nom_freq_reg)) {
1369+
CPC_IN_PCC(low_freq_reg) || CPC_IN_PCC(nom_freq_reg) ||
1370+
CPC_IN_PCC(guaranteed_reg)) {
13701371
if (pcc_ss_id < 0) {
13711372
pr_debug("Invalid pcc_ss_id\n");
13721373
return -ENODEV;

0 commit comments

Comments
 (0)