From: Di Shen <di.shen@unisoc.com>
To: <rafael@kernel.org>, <daniel.lezcano@linaro.org>,
<rui.zhang@intel.com>, <lukasz.luba@arm.com>
Cc: <linux-pm@vger.kernel.org>, <linux-kernel@vger.kernel.org>,
<xuewen.yan@unisoc.com>, <zhanglyra@gmail.com>,
<orsonzhai@gmail.com>
Subject: [PATCH] thermal: core: export the governor register related API
Date: Thu, 28 Dec 2023 18:39:21 +0800 [thread overview]
Message-ID: <20231228103921.23839-1-di.shen@unisoc.com> (raw)
To enable users to register their own thermal governor, this patch
exports thermal_register_governor() and thermal_unregister_governor().
This change would not affect the registration of the default governor.
Signed-off-by: Di Shen <di.shen@unisoc.com>
---
drivers/thermal/thermal_core.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/drivers/thermal/thermal_core.c b/drivers/thermal/thermal_core.c
index 9c17d35ccbbd..56695988e20f 100644
--- a/drivers/thermal/thermal_core.c
+++ b/drivers/thermal/thermal_core.c
@@ -167,6 +167,7 @@ int thermal_register_governor(struct thermal_governor *governor)
return err;
}
+EXPORT_SYMBOL_GPL(thermal_register_governor);
void thermal_unregister_governor(struct thermal_governor *governor)
{
@@ -193,6 +194,7 @@ void thermal_unregister_governor(struct thermal_governor *governor)
exit:
mutex_unlock(&thermal_governor_lock);
}
+EXPORT_SYMBOL_GPL(thermal_unregister_governor);
int thermal_zone_device_set_policy(struct thermal_zone_device *tz,
char *policy)
--
2.17.1
next reply other threads:[~2023-12-28 10:39 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-12-28 10:39 Di Shen [this message]
2023-12-28 20:23 ` [PATCH] thermal: core: export the governor register related API Rafael J. Wysocki
2023-12-29 4:30 ` Di Shen
2023-12-29 8:46 ` gregkh
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=20231228103921.23839-1-di.shen@unisoc.com \
--to=di.shen@unisoc.com \
--cc=daniel.lezcano@linaro.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-pm@vger.kernel.org \
--cc=lukasz.luba@arm.com \
--cc=orsonzhai@gmail.com \
--cc=rafael@kernel.org \
--cc=rui.zhang@intel.com \
--cc=xuewen.yan@unisoc.com \
--cc=zhanglyra@gmail.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