From: Geert Uytterhoeven Date: Mon, 10 Nov 2014 18:39:19 +0000 (+0100) Subject: PM / Domains: Extract code to power off/on a PM domain X-Git-Tag: omap-for-v3.19/fixes-rc1~136^2~3^2~4^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c8f0ea45169c57f36e6d8c4dcf7ccf09de7f1c2c;p=pandora-kernel.git 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 Reviewed-by: Ulf Hansson Reviewed-by: Kevin Hilman Acked-by: Pavel Machek Signed-off-by: Rafael J. Wysocki --- Reading git-diff-tree failed