]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit73e09eb24e4e26e12b8075ae307d6a51b66f05f5
tree945ac12fc98f52d44b7f44bff01837cd62b9eb3e
parent31610ff7a6ccc0a494809b67f08d6a7d3350cb1d
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