PM / sleep: Add macro to define common noirq system PM callbacks
authorGrygorii Strashko <Grygorii.Strashko@linaro.org>
Mon, 27 Apr 2015 18:24:30 +0000 (21:24 +0300)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Tue, 12 May 2015 21:51:36 +0000 (23:51 +0200)
commit020af89a41c41fd2c92d0da524968dfaba6269f0
tree69f2d1bc2d539b7c29743e1d2bb52893cda90bcf
parenta921504588cfe0e11d9306536bdf131b5b957fd3
PM / sleep: Add macro to define common noirq system PM callbacks

The same approach is used as for the existing SET_SYSTEM_SLEEP_PM_OPS,
but for noirq callbacks.

New SET_NOIRQ_SYSTEM_SLEEP_PM_OPS, defined for CONFIG_PM_SLEEP, will
point ->suspend_noirq, ->freeze_noirq and ->poweroff_noirq to the same
function. Vice versa happens for ->resume_noirq, ->thaw_noirq and
->restore_noirq.

Signed-off-by: Grygorii Strashko <Grygorii.Strashko@linaro.org>
Acked-by: Santosh Shilimkar <ssantosh@kernel.org>
Reviewed-by: Ulf Hansson <ulf.hansson@linaro.org>
Acked-by: Pavel Machek <pavel@ucw.cz>
Reviewed-by: Kevin Hilman <khilman@linaro.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
include/linux/pm.h