Skip to content

Commit 5526654

Browse files
zhang-ruirafaeljw
authored andcommitted
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 <[email protected]> Tested-by: Sumeet Pawnikar <[email protected]> Signed-off-by: Rafael J. Wysocki <[email protected]>
1 parent 42226c9 commit 5526654

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/base/power/wakeup.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -930,6 +930,7 @@ bool pm_wakeup_pending(void)
930930

931931
return ret || atomic_read(&pm_abort_suspend) > 0;
932932
}
933+
EXPORT_SYMBOL_GPL(pm_wakeup_pending);
933934

934935
void pm_system_wakeup(void)
935936
{

0 commit comments

Comments
 (0)