]> git.baikalelectronics.ru Git - kernel.git/commit
PM / Domains: Merge measurements for PM QoS device latencies
authorUlf Hansson <ulf.hansson@linaro.org>
Thu, 15 Oct 2015 15:02:19 +0000 (17:02 +0200)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Wed, 28 Oct 2015 03:33:04 +0000 (04:33 +0100)
commit53f96cbee51f20fe316232251ff95ba7b98f2c0a
tree6e61c6e8868866887fc14cb647b0c9d0636767c8
parent3322bf8097e69262a6134144ab840e042c86dada
PM / Domains: Merge measurements for PM QoS device latencies

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

By merging the latency measurements for the ->save_state() and the
->stop() callbacks, we get one measurement instead of two and we get one
value to store instead of two. Let's also apply the likewise change for
the ->start() and ->restore_state() callbacks.

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
drivers/base/power/domain_governor.c
include/linux/pm_domain.h