diff options
author | 2019-08-29 16:48:05 +0200 | |
---|---|---|
committer | 2019-09-02 22:38:00 +0200 | |
commit | b3ad17c09899d491cf9815a6db44d3f9b3f244e7 (patch) | |
tree | 41be7b5589e058fafc207fcba30a3c032ab49cf8 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | PM / Domains: Align in-parameter names for some genpd functions (diff) | |
download | linux-rng-b3ad17c09899d491cf9815a6db44d3f9b3f244e7.tar.xz linux-rng-b3ad17c09899d491cf9815a6db44d3f9b3f244e7.zip |
PM / Domains: Simplify genpd_lookup_dev()
genpd_lookup_dev(), is a bit unnecessary heavy, as it walks the gpd_list to
try to find a valid PM domain corresponding to the device's attached genpd.
Instead of walking the gpd_list, let's use the fact that a genpd always has
the ->runtime_suspend() callback assigned to the genpd_runtime_suspend()
function.
While changing this, let's take the opportunity to also rename
genpd_lookup_dev(), into dev_to_genpd_safe() to better reflect its purpose.
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions