linux/drivers/powercap
Daniel Lezcano 3759ec678e powercap/drivers/dtpm: Add hierarchy creation
The DTPM framework is available but without a way to configure it.

This change provides a way to create a hierarchy of DTPM node where
the power consumption reflects the sum of the children's power
consumption.

It is up to the platform to specify an array of dtpm nodes where each
element has a pointer to its parent, except the top most one. The type
of the node gives the indication of which initialization callback to
call. At this time, we can create a virtual node, where its purpose is
to be a parent in the hierarchy, and a DT node where the name
describes its path.

In order to ensure a nice self-encapsulation, the DTPM subsys array
contains a couple of initialization functions, one to setup the DTPM
backend and one to initialize it up. With this approach, the DTPM
framework has a very few material to export.

Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Reviewed-by: Ulf Hansson <ulf.hansson@linaro.org>
Link: https://lore.kernel.org/r/20220128163537.212248-3-daniel.lezcano@linaro.org
2022-02-04 17:38:09 +01:00
..
dtpm_cpu.c powercap/drivers/dtpm: Convert the init table section to a simple array 2022-02-04 17:38:09 +01:00
dtpm_subsys.h powercap/drivers/dtpm: Convert the init table section to a simple array 2022-02-04 17:38:09 +01:00
dtpm.c powercap/drivers/dtpm: Add hierarchy creation 2022-02-04 17:38:09 +01:00
idle_inject.c powercap: fix typo in a comment in idle_inject.c 2021-12-17 16:30:19 +01:00
intel_rapl_common.c powercap: intel_rapl: support new layout of Psys PowerLimit Register on SPR 2021-12-17 16:13:14 +01:00
intel_rapl_msr.c powercap: Add Power Limit4 support for Alder Lake SoC 2021-08-25 20:12:16 +02:00
Kconfig powercap/drivers/dtpm: Add hierarchy creation 2022-02-04 17:38:09 +01:00
Makefile powercap/drivers/dtpm: Add CPU energy model based support 2020-12-22 19:50:40 +01:00
powercap_sys.c Merge branches 'pm-sleep', 'pm-acpi', 'pm-domains' and 'powercap' 2020-12-15 15:26:14 +01:00