Commit 55266546 authored by Zhang Rui's avatar Zhang Rui Committed by Rafael J. Wysocki
Browse files

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: default avatarZhang Rui <rui.zhang@intel.com>
Tested-by: default avatarSumeet Pawnikar <sumeet.r.pawnikar@intel.com>
Signed-off-by: default avatarRafael J. Wysocki <rafael.j.wysocki@intel.com>
parent 42226c98
Loading
Loading
Loading
Loading
+1 −0
Original line number Original line Diff line number Diff line
@@ -930,6 +930,7 @@ bool pm_wakeup_pending(void)


	return ret || atomic_read(&pm_abort_suspend) > 0;
	return ret || atomic_read(&pm_abort_suspend) > 0;
}
}
EXPORT_SYMBOL_GPL(pm_wakeup_pending);


void pm_system_wakeup(void)
void pm_system_wakeup(void)
{
{