Skip to content
Snippets Groups Projects
Commit b0148e94 authored by Ruchi Kandoi's avatar Ruchi Kandoi
Browse files

POWER: Add an API call to log wake wakeup reason


Change-Id: I8bf670b07dcd52e29214ebb4e6e42dddd8c3d35e
Signed-off-by: default avatarRuchi kandoi <kandoiruchi@google.com>
parent 30908e1f
Branches
Tags
No related merge requests found
...@@ -39,6 +39,7 @@ ...@@ -39,6 +39,7 @@
#include <linux/percpu.h> #include <linux/percpu.h>
#include <linux/slab.h> #include <linux/slab.h>
#include <linux/syscore_ops.h> #include <linux/syscore_ops.h>
#include <linux/wakeup_reason.h>
#include <asm/irq.h> #include <asm/irq.h>
#include <asm/exception.h> #include <asm/exception.h>
...@@ -257,6 +258,7 @@ static void gic_show_resume_irq(struct gic_chip_data *gic) ...@@ -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)) { i = find_next_bit(pending, gic->max_irq, i+1)) {
pr_warning("%s: %d triggered", __func__, pr_warning("%s: %d triggered", __func__,
i + gic->irq_offset); i + gic->irq_offset);
log_wakeup_reason(i + gic->irq_offset);
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment