Make it easier to benchmark a lot of s2disk cycles.
Reboot the machine instead of powering off, and wait for keypress after
printing timings during resume.
---
resume.c | 1 +
suspend.c | 1 +
2 files changed, 2 insertions(+)
Index: suspend-0.2/suspend.c
===================================================================
--- suspend-0.2.orig/suspend.c
+++ suspend-0.2/suspend.c
@@ -625,6 +625,7 @@
static void shutdown(void)
{
+ reboot();
power_off();
/* Signature is on disk, it is very dangerous to continue now.
* We'd do resume with stale caches on next boot. */
Index: suspend-0.2/resume.c
===================================================================
--- suspend-0.2.orig/resume.c
+++ suspend-0.2/resume.c
@@ -675,6 +675,7 @@
if (dev < 0)
return ENOENT;
error = read_image(dev, resume_dev_name);
+ getchar();
if (error) {
fprintf(stderr, "resume: Could not read the image\n");
error = -error;
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Suspend-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/suspend-devel