OSDN Git Service

PM-runtime: Optimize pm_runtime_autosuspend_expiration()
authorLadislav Michl <ladis@linux-mips.org>
Wed, 30 Jan 2019 21:40:17 +0000 (22:40 +0100)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Fri, 1 Feb 2019 10:57:05 +0000 (11:57 +0100)
commitf800ea320c09fbc8bf15aecd5c05e8e6b27ae64e
tree27891d5eb9995a815dea208c6f7ea9e3d6501bde
parent1cc9c59569e0ec69e9beadfe6ba8b2b7b22d57f0
PM-runtime: Optimize pm_runtime_autosuspend_expiration()

pm_runtime_autosuspend_expiration calls ktime_get_mono_fast_ns()
even when its returned value may be unused. Therefore get the
current time later and remove gotos while there.

Signed-off-by: Ladislav Michl <ladis@linux-mips.org>
Acked-by: Tony Lindgren <tony@atomide.com>
Acked-by: Vincent Guittot <vincent.guittot@linaro.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/base/power/runtime.c