From aec7fae7394cb02117a9c9ee6869c6482df69834 Mon Sep 17 00:00:00 2001 From: Suprabh Shukla Date: Fri, 7 Oct 2022 17:41:27 -0700 Subject: [PATCH] Adding irq device map for oriole and raven This mapping is used by the framework for attributing wakeups. Each hardware device that can cause wakeups can be mapped to a list of subsystems that rely on that device for functioning properly. Adding the mapping of rtc clock in these devices to the "Alarm" subsystem, which is the only subsystem currently defined by the framework for wakeup attribution. More mappings can be added as more subsystems are defined. Test: Manually: Build and flash a raven/oriole target and run: adb shell dumpsys batterystats --wakeups The map output should match the xml file. Bug: 249370357 Bug: 195684213 Change-Id: I11b8297ac07dee2bba3715e6047271026093c5c8 --- .../base/core/res/res/xml/irq_device_map.xml | 24 +++++++++++++++++++ .../base/core/res/res/xml/irq_device_map.xml | 24 +++++++++++++++++++ 2 files changed, 48 insertions(+) create mode 100644 oriole/overlay/frameworks/base/core/res/res/xml/irq_device_map.xml create mode 100644 raven/overlay/frameworks/base/core/res/res/xml/irq_device_map.xml diff --git a/oriole/overlay/frameworks/base/core/res/res/xml/irq_device_map.xml b/oriole/overlay/frameworks/base/core/res/res/xml/irq_device_map.xml new file mode 100644 index 0000000..1499164 --- /dev/null +++ b/oriole/overlay/frameworks/base/core/res/res/xml/irq_device_map.xml @@ -0,0 +1,24 @@ + + + + + Alarm + + + diff --git a/raven/overlay/frameworks/base/core/res/res/xml/irq_device_map.xml b/raven/overlay/frameworks/base/core/res/res/xml/irq_device_map.xml new file mode 100644 index 0000000..1499164 --- /dev/null +++ b/raven/overlay/frameworks/base/core/res/res/xml/irq_device_map.xml @@ -0,0 +1,24 @@ + + + + + Alarm + + +