PM / Domains: Don't measure latency of ->power_on|off() during system PM
authorUlf Hansson <ulf.hansson@linaro.org>
Wed, 21 Sep 2016 13:38:52 +0000 (15:38 +0200)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Fri, 23 Sep 2016 23:54:29 +0000 (01:54 +0200)
commitadb560b3ee395ac9688a93582d805edec4c3d3e7
tree9778d13b766d48997fb080c2ab37d597a3816b09
parent294f47ffd55c3710c6f8ca1122e0424f045a099c
PM / Domains: Don't measure latency of ->power_on|off() during system PM

Measure latency does by itself contribute to an increased latency, thus we
should avoid it when it isn't needed.

Currently genpd measures latencies in the system PM phase for the
->power_on|off() callbacks, except in the syscore case when it's not
allowed to use ktime_get() as timekeeping may be suspended.

Since there should be plenty of occasions during runtime PM to perform
these measurements, let's rely on that and drop them from system PM. This
will also make it consistent for how measurements are done of the runtime
PM callbacks (as those may be invoked during system PM).

Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/base/power/domain.c