diff options
author | Miquel Raynal <[email protected]> | 2018-12-04 20:24:37 +0100 |
---|---|---|
committer | Stephen Boyd <[email protected]> | 2019-03-01 11:17:16 -0800 |
commit | 2447883934a03c80a85d92cd313ea1d10e330158 (patch) | |
tree | 409aaf494a286fe60f134b4bee5bd1f201c545a6 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | 1df4046a93e086f77d244ea47c21591b4acad3e2 (diff) |
clk: core: clarify the check for runtime PM
Currently, the core->dev entry is populated only if runtime PM is
enabled. Doing so prevents accessing the device structure in any
case.
Keep the same logic but instead of using the presence of core->dev as
the only condition, also check the status of
pm_runtime_enabled(). Then, we can set the core->dev pointer at any
time as long as a device structure is available.
This change will help supporting device links in the clock subsystem.
Signed-off-by: Miquel Raynal <[email protected]>
Cc: Jerome Brunet <[email protected]>
Cc: Russell King <[email protected]>
Cc: Michael Turquette <[email protected]>
Cc: Jeffrey Hugo <[email protected]>
Cc: Chen-Yu Tsai <[email protected]>
[[email protected]: Change to a boolean flag]
Signed-off-by: Stephen Boyd <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions