linux-pm.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] PM: wakup: export wakeup irq when system aborts suspend
@ 2019-04-24  6:59 Zhang Rui
  2019-04-24  7:29 ` Rafael J. Wysocki
  0 siblings, 1 reply; 6+ messages in thread
From: Zhang Rui @ 2019-04-24  6:59 UTC (permalink / raw)
  To: rjw; +Cc: linux-pm

When suspend is aborted because of an ARMED irq, we can not get any
useful information about which irq is triggered.

Export the wakeup irq via suspend_resume trace event in this case.

Signed-off-by: Brandt, Todd E <todd.e.brandt@intel.com>
Signed-off-by: Zhang Rui <rui.zhang@intel.com>
---
 drivers/base/power/wakeup.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/base/power/wakeup.c b/drivers/base/power/wakeup.c
index bb1ae17..d32bd91 100644
--- a/drivers/base/power/wakeup.c
+++ b/drivers/base/power/wakeup.c
@@ -875,6 +875,7 @@ void pm_system_irq_wakeup(unsigned int irq_number)
 {
 	if (pm_wakeup_irq == 0) {
 		pm_wakeup_irq = irq_number;
+		trace_suspend_resume(TPS("irq_wakeup"), irq_number, true);
 		pm_system_wakeup();
 	}
 }
-- 
2.7.4


^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2019-04-25 10:12 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-04-24  6:59 [PATCH] PM: wakup: export wakeup irq when system aborts suspend Zhang Rui
2019-04-24  7:29 ` Rafael J. Wysocki
2019-04-24  7:46   ` Zhang Rui
2019-04-24  8:32     ` Rafael J. Wysocki
2019-04-24  8:57       ` Zhang Rui
2019-04-25 10:12         ` Rafael J. Wysocki

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).