]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commit
PM / sleep: make PM notifiers called symmetrically
authorLianwei Wang <lianwei.wang@gmail.com>
Mon, 20 Jun 2016 06:52:27 +0000 (23:52 -0700)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Mon, 27 Jun 2016 22:38:55 +0000 (00:38 +0200)
commitea00f4f4f00cc2bc3b63ad512a4e6df3b20832b9
tree148dbab1f94bc7dd515c6ddda12f85bae310dd4f
parentca5f2b4c4fb7bb7397317ee2ead83485aa295a3e
PM / sleep: make PM notifiers called symmetrically

This makes pm notifier PREPARE/POST symmetrical: if PREPARE
fails, we will only undo what ever happened on PREPARE.

It fixes the unbalanced CPU hotplug enable in CPU PM notifier.

Signed-off-by: Lianwei Wang <lianwei.wang@gmail.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
kernel/power/hibernate.c
kernel/power/main.c
kernel/power/power.h
kernel/power/suspend.c
kernel/power/user.c