From: Hanjun Guo <guohanjun@huawei.com>
To: "Rafael J. Wysocki" <rafael@kernel.org>,
Viresh Kumar <viresh.kumar@linaro.org>
Cc: <linux-acpi@vger.kernel.org>, <linux-pm@vger.kernel.org>,
Xiongfeng Wang <wangxiongfeng2@huawei.com>,
Hanjun Guo <guohanjun@huawei.com>
Subject: [PATCH 2/2] cpufreq: cppc: put the acpi table after successfully get it
Date: Tue, 24 Dec 2019 09:56:30 +0800 [thread overview]
Message-ID: <1577152590-25574-2-git-send-email-guohanjun@huawei.com> (raw)
In-Reply-To: <1577152590-25574-1-git-send-email-guohanjun@huawei.com>
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 --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 */
--
1.7.12.4
next prev parent reply other threads:[~2019-12-24 2:01 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-12-24 1:56 [PATCH 1/2] cpufreq : cppc: Break out if we match the HiSilicon cppc workaround Hanjun Guo
2019-12-24 1:56 ` Hanjun Guo [this message]
2019-12-29 22:47 ` Rafael J. Wysocki
2019-12-30 12:10 ` Hanjun Guo
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1577152590-25574-2-git-send-email-guohanjun@huawei.com \
--to=guohanjun@huawei.com \
--cc=linux-acpi@vger.kernel.org \
--cc=linux-pm@vger.kernel.org \
--cc=rafael@kernel.org \
--cc=viresh.kumar@linaro.org \
--cc=wangxiongfeng2@huawei.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox