diff mbox series

[2/2] cpufreq: cppc: put the acpi table after successfully get it

Message ID 1577152590-25574-2-git-send-email-guohanjun@huawei.com (mailing list archive)
State Mainlined, archived
Headers show
Series [1/2] cpufreq : cppc: Break out if we match the HiSilicon cppc workaround | expand

Commit Message

Hanjun Guo Dec. 24, 2019, 1:56 a.m. UTC
We need to put the ACPI table to release the table mapping
after we successfully get it.

Signed-off-by: Hanjun Guo <guohanjun@huawei.com>
---
 drivers/cpufreq/cppc_cpufreq.c | 2 ++
 1 file changed, 2 insertions(+)
diff mbox series

Patch

diff --git a/drivers/cpufreq/cppc_cpufreq.c b/drivers/cpufreq/cppc_cpufreq.c
index d0ca300..a06777c 100644
--- a/drivers/cpufreq/cppc_cpufreq.c
+++ b/drivers/cpufreq/cppc_cpufreq.c
@@ -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 */