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
This commit is contained in:
parent
f65b927a03
commit
aec7fae739
2 changed files with 48 additions and 0 deletions
|
@ -0,0 +1,24 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
**
|
||||
** Copyright 2022, The Android Open Source Project
|
||||
**
|
||||
** Licensed under the Apache License, Version 2.0 (the "License")
|
||||
** you may not use this file except in compliance with the License.
|
||||
** You may obtain a copy of the License at
|
||||
**
|
||||
** http://www.apache.org/licenses/LICENSE-2.0
|
||||
**
|
||||
** Unless required by applicable law or agreed to in writing, software
|
||||
** distributed under the License is distributed on an "AS IS" BASIS,
|
||||
** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
** See the License for the specific language governing permissions and
|
||||
** limitations under the License.
|
||||
*/
|
||||
-->
|
||||
<irq-device-map>
|
||||
<device name="rtc-alarm0">
|
||||
<subsystem>Alarm</subsystem>
|
||||
</device>
|
||||
</irq-device-map>
|
||||
|
|
@ -0,0 +1,24 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
**
|
||||
** Copyright 2022, The Android Open Source Project
|
||||
**
|
||||
** Licensed under the Apache License, Version 2.0 (the "License")
|
||||
** you may not use this file except in compliance with the License.
|
||||
** You may obtain a copy of the License at
|
||||
**
|
||||
** http://www.apache.org/licenses/LICENSE-2.0
|
||||
**
|
||||
** Unless required by applicable law or agreed to in writing, software
|
||||
** distributed under the License is distributed on an "AS IS" BASIS,
|
||||
** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
** See the License for the specific language governing permissions and
|
||||
** limitations under the License.
|
||||
*/
|
||||
-->
|
||||
<irq-device-map>
|
||||
<device name="rtc-alarm0">
|
||||
<subsystem>Alarm</subsystem>
|
||||
</device>
|
||||
</irq-device-map>
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue