PM: hibernate: Incorporate concurrency handling
authorDomenico Andreoli <domenico.andreoli@linux.com>
Thu, 7 May 2020 07:19:52 +0000 (09:19 +0200)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Tue, 19 May 2020 15:48:08 +0000 (17:48 +0200)
commitab7e9b067f3d9cbec28cfca51d341efb421b7a51
tree945ac12fc98f52d44b7f44bff01837cd62b9eb3e
parent3a4ccdb92e1e0f51844c8b60f2c0f48a4a620000
PM: hibernate: Incorporate concurrency handling

Hibernation concurrency handling is currently delegated to user.c,
where it's also used for regulating the access to the snapshot device.

In the prospective of making user.c a separate configuration option,
such mutual exclusion is brought into hibernate.c and made available
through accessor helpers hereby introduced.

Signed-off-by: Domenico Andreoli <domenico.andreoli@linux.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
kernel/power/hibernate.c
kernel/power/power.h
kernel/power/user.c