* [PATCH] power: use EXPORT_SYMBOL() to export symbol
@ 2026-08-20 3:44 Dongbum Kim
2026-08-25 6:02 ` Christoph Hellwig
0 siblings, 1 reply; 2+ messages in thread
From: Dongbum Kim @ 2026-08-20 3:44 UTC (permalink / raw)
To: rafael, lenb, pavel; +Cc: linux-pm, linux-kernel, Dongbum Kim
Add EXPORT_SYMBOL() to mark freeze_timeout_msecs symbol as visible.
freeze_timeout_msecs defines the timeout for try_to_freeze_tasks. If
tasks cannot be frozen within this timeout, try_to_freeze_tasks fails,
and causes suspend or hibernation to fail.
For example, a device driver may need to perform certain operations
during the freezing phase. In some cases, these operations can take
longer than freeze_timeout_msecs to complete. To allow such drivers to
limit their work appropriately and transition to the frozen state before
the timeout expires, export freeze_timeout_msecs so that it can be
referenced by other kernel components.
Signed-off-by: Dongbum Kim <dongbum.kim@lge.com>
---
kernel/power/process.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/kernel/power/process.c b/kernel/power/process.c
index dc0dfc349f22..5ddfd645b522 100644
--- a/kernel/power/process.c
+++ b/kernel/power/process.c
@@ -25,6 +25,8 @@
*/
unsigned int __read_mostly freeze_timeout_msecs = 20 * MSEC_PER_SEC;
+EXPORT_SYMBOL(freeze_timeout_msecs);
+
static int try_to_freeze_tasks(bool user_only)
{
const char *what = user_only ? "user space processes" :
--
2.43.0
^ permalink raw reply related [flat|nested] 2+ messages in thread* Re: [PATCH] power: use EXPORT_SYMBOL() to export symbol
2026-08-20 3:44 [PATCH] power: use EXPORT_SYMBOL() to export symbol Dongbum Kim
@ 2026-08-25 6:02 ` Christoph Hellwig
0 siblings, 0 replies; 2+ messages in thread
From: Christoph Hellwig @ 2026-08-25 6:02 UTC (permalink / raw)
To: Dongbum Kim; +Cc: rafael, lenb, pavel, linux-pm, linux-kernel, Dongbum Kim
On Thu, Aug 20, 2026 at 12:44:45PM +0900, Dongbum Kim wrote:
> Add EXPORT_SYMBOL() to mark freeze_timeout_msecs symbol as visible.
>
> freeze_timeout_msecs defines the timeout for try_to_freeze_tasks. If
> tasks cannot be frozen within this timeout, try_to_freeze_tasks fails,
> and causes suspend or hibernation to fail.
>
> For example, a device driver may need to perform certain operations
I think you really should know that:
a) exports without users are a complete no-go, and sending them is
considered a major offence
b) even with users, exporting data (variables) is generally a bad idea
c) non-GPL exports for new functionality are almost always a bad idea
if not please take this up with your corporate and technical leadership
to ensure the Linux training standards at LG are up to date.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2026-08-25 6:02 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-08-20 3:44 [PATCH] power: use EXPORT_SYMBOL() to export symbol Dongbum Kim
2026-08-25 6:02 ` Christoph Hellwig
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox