aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/pm.h
diff options
context:
space:
mode:
authorGeert Uytterhoeven <geert+renesas@glider.be>2014-11-10 19:39:19 +0100
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2014-11-14 00:07:31 +0100
commitc8f0ea45169c57f36e6d8c4dcf7ccf09de7f1c2c (patch)
treee00a8b808323f4483d449a23c5b99f6e3d8ba3c2 /include/linux/pm.h
parentPM / Domains: Make genpd parameter of pm_genpd_present() const (diff)
downloadlinux-dev-c8f0ea45169c57f36e6d8c4dcf7ccf09de7f1c2c.tar.xz
linux-dev-c8f0ea45169c57f36e6d8c4dcf7ccf09de7f1c2c.zip
PM / Domains: Extract code to power off/on a PM domain
PM domains are powered on/off from various places. Some callers do latency measurements, others don't. Consolidate using two helper functions, which always measure the latencies, and update the stored latencies when needed. Other minor changes: - Use pr_warn() instead of pr_warning(), - There's no need to check genpd->name, %s handles NULL pointers fine, - Make the warning format strings identical, to save memory. Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be> Reviewed-by: Ulf Hansson <ulf.hansson@linaro.org> Reviewed-by: Kevin Hilman <khilman@linaro.org> Acked-by: Pavel Machek <pavel@ucw.cz> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'include/linux/pm.h')
0 files changed, 0 insertions, 0 deletions