From b0148e943048ee1fc3d4a49a25370b6982f20946 Mon Sep 17 00:00:00 2001
From: Ruchi Kandoi <kandoiruchi@google.com>
Date: Mon, 24 Feb 2014 11:04:45 -0800
Subject: [PATCH] POWER: Add an API call to log wake wakeup reason

Change-Id: I8bf670b07dcd52e29214ebb4e6e42dddd8c3d35e
Signed-off-by: Ruchi kandoi <kandoiruchi@google.com>
---
 arch/arm/common/gic.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/arch/arm/common/gic.c b/arch/arm/common/gic.c
index 9dd434700a93..b95ba4d2a15d 100644
--- a/arch/arm/common/gic.c
+++ b/arch/arm/common/gic.c
@@ -39,6 +39,7 @@
 #include <linux/percpu.h>
 #include <linux/slab.h>
 #include <linux/syscore_ops.h>
+#include <linux/wakeup_reason.h>
 
 #include <asm/irq.h>
 #include <asm/exception.h>
@@ -257,6 +258,7 @@ static void gic_show_resume_irq(struct gic_chip_data *gic)
 	     i = find_next_bit(pending, gic->max_irq, i+1)) {
 		pr_warning("%s: %d triggered", __func__,
 					i + gic->irq_offset);
+		log_wakeup_reason(i + gic->irq_offset);
 	}
 }
 
-- 
GitLab