From patchwork Tue Dec 24 01:56:30 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hanjun Guo X-Patchwork-Id: 11308987 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 4CBF6186E for ; Tue, 24 Dec 2019 02:01:28 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 3600B20828 for ; Tue, 24 Dec 2019 02:01:28 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726853AbfLXCB1 (ORCPT ); Mon, 23 Dec 2019 21:01:27 -0500 Received: from szxga06-in.huawei.com ([45.249.212.32]:44782 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726997AbfLXCB1 (ORCPT ); Mon, 23 Dec 2019 21:01:27 -0500 Received: from DGGEMS412-HUB.china.huawei.com (unknown [172.30.72.60]) by Forcepoint Email with ESMTP id 6AEBA32927A4CDE31092; Tue, 24 Dec 2019 10:01:24 +0800 (CST) Received: from linux-ibm.site (10.175.102.37) by DGGEMS412-HUB.china.huawei.com (10.3.19.212) with Microsoft SMTP Server id 14.3.439.0; Tue, 24 Dec 2019 10:01:17 +0800 From: Hanjun Guo To: "Rafael J. Wysocki" , Viresh Kumar CC: , , Xiongfeng Wang , Hanjun Guo Subject: [PATCH 2/2] cpufreq: cppc: put the acpi table after successfully get it Date: Tue, 24 Dec 2019 09:56:30 +0800 Message-ID: <1577152590-25574-2-git-send-email-guohanjun@huawei.com> X-Mailer: git-send-email 1.7.12.4 In-Reply-To: <1577152590-25574-1-git-send-email-guohanjun@huawei.com> References: <1577152590-25574-1-git-send-email-guohanjun@huawei.com> MIME-Version: 1.0 X-Originating-IP: [10.175.102.37] X-CFilter-Loop: Reflected Sender: linux-pm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org We need to put the ACPI table to release the table mapping after we successfully get it. Signed-off-by: Hanjun Guo --- drivers/cpufreq/cppc_cpufreq.c | 2 ++ 1 file changed, 2 insertions(+) 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 */