diff options
author | Ulf Hansson <[email protected]> | 2019-03-27 15:35:45 +0100 |
---|---|---|
committer | Rafael J. Wysocki <[email protected]> | 2019-04-10 00:32:34 +0200 |
commit | 49a27e279052cf71ba931a26b00194ff46510480 (patch) | |
tree | 48248eeafd52930a4be7b797d966d26bf90d73db /scripts/gcc-plugins/gcc-generate-gimple-pass.h | |
parent | c324f43aed89b33eee37aaf022b32c31a2b3104d (diff) |
PM / Domains: Add generic data pointer to struct genpd_power_state
Add a data pointer to the genpd_power_state struct, to allow a genpd
backend driver to store per-state specific data. To introduce the
pointer, change the way genpd deals with freeing of the corresponding
allocated data.
More precisely, clarify the responsibility of whom that shall free the
data, by adding a ->free_states() callback to the generic_pm_domain
structure. The one allocating the data will be expected to set the
callback, to allow genpd to invoke it from genpd_remove().
Co-developed-by: Lina Iyer <[email protected]>
Acked-by: Daniel Lezcano <[email protected]>
Signed-off-by: Ulf Hansson <[email protected]>
[ rjw: Subject & changelog ]
Signed-off-by: Rafael J. Wysocki <[email protected]>
Diffstat (limited to 'scripts/gcc-plugins/gcc-generate-gimple-pass.h')
0 files changed, 0 insertions, 0 deletions