On 08/20/2018 02:44 AM, Quentin Perret wrote:
Expose the Energy Model (read-only) of all performance domains in sysfs
for convenience. To do so, add a kobject to the CPU subsystem under the
umbrella of which a kobject for each performance domain is attached.

The resulting hierarchy is as follows for a platform with two
performance domains for example:

    /sys/devices/system/cpu/energy_model
    ├── pd0
    │   ├── cost
    │   ├── cpus
    │   ├── frequency
    │   └── power

cpus (cpumask of the perf domain), frequency (OPP's of the perf domain) and power (values at those OPP's) are somehow easy to grasp, cost is definitely not.

You have this nice description in em_pd_energy() what cost actually is. IMHO, might be worth repeating this at least in the patch header here.

[...]

Reply via email to