Skip to content

[v2] lisa._assets.kmodules.sched_tp: Add EM sysfs tree for latest phones

Darryl Green requested to merge github/fork/mrkajetanp/em_sysfs_export into master

Created by: mrkajetanp

From Lukasz's original PR:

Latest Android removed debugfs dir and config. There is a need to expose Energy Model in some other way. Use the kobject and sysfs infrastructure to do that.

This PR adds another commit on top of the previous one to include the missing 'cpus' files that are expected by Lisa's LinuxEnergyModel. This avoids Lisa errors and allows us to load the EM using LinuxEnergyModel.from_target(target, directory='/sys/kernel/energy_model') which would previously result in errors caused by the missing 'cpus' files.

Expands upon #1870.

Merge request reports