aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/mem-phys-addr.py
diff options
context:
space:
mode:
authorUlf Hansson <ulf.hansson@linaro.org>2021-06-08 11:02:48 +0200
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2021-06-11 19:03:01 +0200
commit5a2bd1b1c64e1ac5627db3767ac465f18606315c (patch)
treee369c247f85b683d8b2d1a43f1feee1efb6474f0 /tools/perf/scripts/python/mem-phys-addr.py
parentc58e7ed28b4534ed073371843d03c433d6a9fe34 (diff)
PM: runtime: Improve path in rpm_idle() when no callback
When pm_runtime_no_callbacks() has been called for a struct device to set the dev->power.no_callbacks flag for it, it enables rpm_idle() to take a slightly quicker path by assuming that a ->runtime_idle() callback would have returned 0 to indicate success. A device that does not have the dev->power.no_callbacks flag set for it, may still be missing a corresponding ->runtime_idle() callback, in which case the slower path in rpm_idle() is taken. Let's improve the behaviour for this case, by aligning code to the quicker path. Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org> Acked-by: Alan Stern <stern@rowland.harvard.edu> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'tools/perf/scripts/python/mem-phys-addr.py')
0 files changed, 0 insertions, 0 deletions