[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20201022061748.13730-2-claude.yen@mediatek.com>
Date: Thu, 22 Oct 2020 14:17:48 +0800
From: Claude Yen <claude.yen@...iatek.com>
To: "Rafael J . Wysocki" <rjw@...ysocki.net>,
Len Brown <len.brown@...el.com>, Pavel Machek <pavel@....cz>,
Matthias Brugger <matthias.bgg@...il.com>
CC: <linux-pm@...r.kernel.org>, <linux-kernel@...r.kernel.org>,
<linux-arm-kernel@...ts.infradead.org>,
<linux-mediatek@...ts.infradead.org>, <wsd_upstream@...iatek.com>,
<claude.yen@...iatek.com>
Subject: [PATCH] PM / s2idle: Export s2idle_set_ops
As suspend_set_ops is exported in commit a5e4fd8783a2
("PM / Suspend: Export suspend_set_ops, suspend_valid_only_mem"),
exporting s2idle_set_ops to make kernel module setup s2idle ops too.
In this way, kernel module can hook platform suspend
functions regardless of Suspend-to-Ram(S2R) or
Suspend-to-Idle(S2I)
Signed-off-by: Claude Yen <claude.yen@...iatek.com>
---
kernel/power/suspend.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/kernel/power/suspend.c b/kernel/power/suspend.c
index 8b1bb5ee7e5d..0dc3e8344318 100644
--- a/kernel/power/suspend.c
+++ b/kernel/power/suspend.c
@@ -79,6 +79,7 @@ void s2idle_set_ops(const struct platform_s2idle_ops *ops)
s2idle_ops = ops;
unlock_system_sleep();
}
+EXPORT_SYMBOL_GPL(s2idle_set_ops);
static void s2idle_begin(void)
{
--
2.18.0
Powered by blists - more mailing lists