Skip to content

Commit

Permalink
cpufreq: CPPC: put ACPI table after using it
Browse files Browse the repository at this point in the history
Put the ACPI table to release the table mapping after using it
successfully.

Signed-off-by: Hanjun Guo <guohanjun@huawei.com>
[ rjw: Subject & changelog ]
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
  • Loading branch information
Hanjun Guo authored and Rafael J. Wysocki committed Dec 29, 2019
1 parent c740237 commit 80e8b1e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions drivers/cpufreq/cppc_cpufreq.c
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,8 @@ static void cppc_check_hisi_workaround(void)
break;
}
}

acpi_put_table(tbl);
}

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

0 comments on commit 80e8b1e

Please sign in to comment.