PM / hibernate: Untangle power_down()
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>
Thu, 23 Feb 2017 23:25:28 +0000 (00:25 +0100)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Mon, 27 Feb 2017 14:09:28 +0000 (15:09 +0100)
commit81d45bdf89135cd26dc7535c14a45db6cdd647fa
treef62d85f484d20288523f70aef6377c37456bd5e3
parent00bb3998829783157ccf1343abcccd38a604bc64
PM / hibernate: Untangle power_down()

The power_down() routine in the core hibernation code is not exactly
straightforward (to put it lightly), so clean it up to make it avoid
invoking itself recursively, among other things.

Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
kernel/power/hibernate.c