]> git.baikalelectronics.ru Git - kernel.git/commit
PM / Domains: Don't measure ->start|stop() latency in system PM callbacks
authorUlf Hansson <ulf.hansson@linaro.org>
Thu, 15 Oct 2015 15:02:06 +0000 (17:02 +0200)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Wed, 28 Oct 2015 03:33:04 +0000 (04:33 +0100)
commit3322bf8097e69262a6134144ab840e042c86dada
tree911179ce9dd03df7dd86b24c5bd1aa9d70c80889
parentc1e72d98bb0f215697fa48fe5b1a2a215cece859
PM / Domains: Don't measure ->start|stop() latency in system PM callbacks

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

Genpd measures latencies in the system PM phase for the ->start|stop()
callbacks and is thus affecting the system PM suspend/resume time.
Moreover these latencies are validated only at runtime PM suspend/resume.

To this reasoning, let's decide to leave these measurements out of the
system PM phase. There should be plenty of occasions during runtime PM to
perform these measurements anyway.

Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Reviewed-by: Lina Iyer <lina.iyer@linaro.org>
Acked-by: Kevin Hilman <khilman@linaro.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/base/power/domain.c