From: Zhang Rui Date: Thu, 19 May 2022 14:35:05 +0000 (+0800) Subject: PM: wakeup: expose pm_wakeup_pending to modules X-Git-Tag: v6.6.17~7481^2^3~3 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=55266546f45dcc9284ca93f4fa3f6693d30ea8ce;p=platform%2Fkernel%2Flinux-rpi.git PM: wakeup: expose pm_wakeup_pending to modules intel_pch_thermal driver needs a long delay to cool itself (60 seconds in maximum) during suspend. When a wakeup event occures during the delay, it is better for the intel_pch_thermal driver to detect this and quit cooling because the suspend is likely to abort anyway. Thus expose pm_wakeup_pending to modules so that intel_pch_thermal driver can be aware of the wakeup events. Signed-off-by: Zhang Rui Tested-by: Sumeet Pawnikar Signed-off-by: Rafael J. Wysocki --- diff --git a/drivers/base/power/wakeup.c b/drivers/base/power/wakeup.c index a57d469..11a4ffe 100644 --- a/drivers/base/power/wakeup.c +++ b/drivers/base/power/wakeup.c @@ -930,6 +930,7 @@ bool pm_wakeup_pending(void) return ret || atomic_read(&pm_abort_suspend) > 0; } +EXPORT_SYMBOL_GPL(pm_wakeup_pending); void pm_system_wakeup(void) {