summaryrefslogtreecommitdiffstats
path: root/kernel/power/power.h
diff options
context:
space:
mode:
authorRafael J. Wysocki <rjw@sisk.pl>2007-05-06 14:50:45 -0700
committerLinus Torvalds <torvalds@woody.linux-foundation.org>2007-05-07 12:12:59 -0700
commit0709db6072c2e799eba1aa61bd19e0d7f38aa2cd (patch)
treee348c73adbfdcb46b05b23f36dc420ecdd62ca8a /kernel/power/power.h
parent1525a2ad76f991eba9755f75c9b6d4d97abad25e (diff)
downloadop-kernel-dev-0709db6072c2e799eba1aa61bd19e0d7f38aa2cd.zip
op-kernel-dev-0709db6072c2e799eba1aa61bd19e0d7f38aa2cd.tar.gz
swsusp: use GFP_KERNEL for creating basic data structures
Make swsusp call create_basic_memory_bitmaps() before processes are frozen, so that GFP_KERNEL allocations can be made in it. Additionally, ensure that the swsusp's userland interface won't be used while either pm_suspend_disk() or software_resume() is being executed. Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl> Acked-by: Pavel Machek <pavel@ucw.cz> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'kernel/power/power.h')
-rw-r--r--kernel/power/power.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/kernel/power/power.h b/kernel/power/power.h
index 1f8052b..a64d3f2 100644
--- a/kernel/power/power.h
+++ b/kernel/power/power.h
@@ -140,6 +140,9 @@ struct resume_swap_area {
#define PMOPS_ENTER 2
#define PMOPS_FINISH 3
+/* If unset, the snapshot device cannot be open. */
+extern atomic_t snapshot_device_available;
+
/**
* The bitmap is used for tracing allocated swap pages
*
OpenPOWER on IntegriCloud