lkml.org 
[lkml]   [2006]   [Jun]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[Suspend2][ 07/13] [Suspend2] Get the amount of memory needed by the storage manager.
Date
Get the amount of memory needed by the storage manager. Note that this is
just the storage needed while running, not the grand total.

Signed-off-by: Nigel Cunningham <nigel@suspend2.net>

kernel/power/storage.c | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
diff --git a/kernel/power/storage.c b/kernel/power/storage.c
index 714e95e..e31623a 100644
--- a/kernel/power/storage.c
+++ b/kernel/power/storage.c
@@ -170,3 +170,9 @@ static void usm_load_config_info(char *b
memcpy(usm_helper_data.program, buf, size);
}

+static unsigned long usm_memory_needed(void)
+{
+ /* ball park figure of 32 pages */
+ return (32 * PAGE_SIZE);
+}
+
--
Nigel Cunningham nigel at suspend2 dot net
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2006-06-27 06:44    [W:0.260 / U:0.088 seconds]
©2003-2011 Jasper Spaans. Advertise on this site