power: Add wakeup source in battery historian logging

Change-Id: I194ceccd10e455da8c58a2c96e4339557024b142
Signed-off-by: luodw1 <luodw1@motorola.com>
Reviewed-on: https://gerrit.mot.com/1523886
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
This commit is contained in:
luodw1 authored and Gilberto Gambugge committed 2023-06-01 00:47:10 -03:00
1 parent e3a5fdf0f3
commit 96ac3c6c18
1 file changed
+2
+2
View File
@@ -22,6 +22,7 @@
#include <linux/irq.h>
#include <linux/interrupt.h>
#include <linux/irqdesc.h>
#include <linux/wakeup_reason.h>
#include "power.h"
@@ -946,6 +947,7 @@ void pm_system_irq_wakeup(unsigned int irq_number)
log_irq_wakeup_reason(irq_number);
pr_warn("%s: %d triggered %s\n", __func__, irq_number, name);
log_wakeup_reason(irq_number);
pm_wakeup_irq = irq_number;
pm_system_wakeup();
}