]> git.baikalelectronics.ru Git - kernel.git/commit
PM: wakeup: expose pm_wakeup_pending to modules
authorZhang Rui <rui.zhang@intel.com>
Thu, 19 May 2022 14:35:05 +0000 (22:35 +0800)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Thu, 19 May 2022 17:40:25 +0000 (19:40 +0200)
commit2fa60618fcc2dfaf4b47d6cd42980a233e8c67e5
tree52a936ab664a570d30ad84f47579d4d75f61059a
parent06e6170e0ae33ea1ff98f01501371e23c4eee66a
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 <rui.zhang@intel.com>
Tested-by: Sumeet Pawnikar <sumeet.r.pawnikar@intel.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/base/power/wakeup.c