summaryrefslogtreecommitdiff
path: root/kernel/power/tuxonice_pageflags.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/power/tuxonice_pageflags.c')
-rw-r--r--kernel/power/tuxonice_pageflags.c18
1 files changed, 18 insertions, 0 deletions
diff --git a/kernel/power/tuxonice_pageflags.c b/kernel/power/tuxonice_pageflags.c
new file mode 100644
index 000000000..307d09f33
--- /dev/null
+++ b/kernel/power/tuxonice_pageflags.c
@@ -0,0 +1,18 @@
+/*
+ * kernel/power/tuxonice_pageflags.c
+ *
+ * Copyright (C) 2004-2015 Nigel Cunningham (nigel at nigelcunningham com au)
+ *
+ * This file is released under the GPLv2.
+ *
+ * Routines for serialising and relocating pageflags in which we
+ * store our image metadata.
+ */
+
+#include "tuxonice_pageflags.h"
+#include "power.h"
+
+int toi_pageflags_space_needed(void)
+{
+ return memory_bm_space_needed(pageset1_map);
+}