Magellan Linux

Contents of /trunk/kernel26-magellan/patches-2.6.16-r12/0028-2.6.16-swsusp-post_resume_aggressive_swap_prefetch-1.patch

Parent Directory Parent Directory | Revision Log Revision Log


Revision 72 - (show annotations) (download)
Mon Jun 5 09:25:38 2006 UTC (17 years, 10 months ago) by niro
File size: 669 byte(s)
ver bump to 2.6.16-r12:
- updated to linux-2.6.16.19
- updated to ck11

1 ---
2 kernel/power/disk.c | 3 +++
3 1 files changed, 3 insertions(+)
4
5 Index: linux-2.6.16-ck3/kernel/power/disk.c
6 ===================================================================
7 --- linux-2.6.16-ck3.orig/kernel/power/disk.c 2006-04-02 12:46:19.000000000 +1000
8 +++ linux-2.6.16-ck3/kernel/power/disk.c 2006-04-02 12:46:49.000000000 +1000
9 @@ -18,6 +18,7 @@
10 #include <linux/fs.h>
11 #include <linux/mount.h>
12 #include <linux/pm.h>
13 +#include <linux/swap-prefetch.h>
14
15 #include "power.h"
16
17 @@ -160,6 +161,8 @@ int pm_suspend_disk(void)
18 Done:
19 device_resume();
20 unprepare_processes();
21 + if (!error && !in_suspend)
22 + aggressive_swap_prefetch();
23 return error;
24 }
25