Expand description
Exposes power residency entities from PowerStatsManager under platform devices in
/sys/devices/platform, such as powerdashboard and cap_sysfs.
These devices are not generic Linux sysfs interfaces. They emulate the SoC-specific vendor devices that the Android PowerStats HAL reads residency from: the CPM power dashboard and the CAP (CPU Auxiliary Processor) stats device. The DSU’s devfreq device is also emulated, as the HAL reads the DSU’s frequencies from it to label the DSU’s DVFS residency.
Functions§
- init_
power_ residency_ device - Serves a file for each power entity reported over
fuchsia.hardware.power.stats.Servicethat [residency_file_spec] maps to one, under its platform device.