PM / core: Add helpers for subsystem callback selection
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>
Sat, 9 Dec 2017 23:58:18 +0000 (00:58 +0100)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Tue, 2 Jan 2018 23:29:48 +0000 (00:29 +0100)
commit4fa3061a6856cc72f3f984702145bb30f16ee40e
tree7f10e0e1c662becfe39f91e467a55f64488dda7e
parent9dbc64a5d5938b990a045509ff5356fc53e4abd4
PM / core: Add helpers for subsystem callback selection

Add helper routines to find and return a suitable subsystem callback
during the "noirq" phases of system suspend/resume (or analogous)
transitions as well as during the "late" phase of system suspend and
the "early" phase of system resume (or analogous) transitions.

The helpers will be called from additional sites going forward.

Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Reviewed-by: Ulf Hansson <ulf.hansson@linaro.org>
Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
drivers/base/power/main.c