Re: [PATCH 2/3] swsusp: Do not use page flags
- From: "Rafael J. Wysocki" <rjw@xxxxxxx>
- Date: Tue, 20 Mar 2007 22:18:16 +0100
On Tuesday, 20 March 2007 01:31, Andrew Morton wrote:
On Mon, 12 Mar 2007 22:19:20 +0100
"Rafael J. Wysocki" <rjw@xxxxxxx> wrote:
Make swsusp use memory bitmaps instead of page flags for marking 'nosave' and
free pages. This allows us to 'recycle' two page flags that can be used for other
purposes. Also, the memory needed to store the bitmaps is allocated when
necessary (ie. before the suspend) and freed after the resume which is more
reasonable.
The patch is designed to minimize the amount of changes and there are some nice
simplifications and optimizations possible on top of it. I am going to
implement them separately in the future.
Blows up with ia64 allmodconfig due to CONFIG_PM=y, CONFIG_SOFTWARE_SUSPEND=n:
kernel/power/main.c:223: error: redefinition of 'software_suspend'
include/linux/suspend.h:46: error: previous definition of 'software_suspend' was here
I had a look at fixing it, but it's unobvious why we're compiling most of
kernel/power/main.c when CONFIG_SOFTWARE_SUSPEND=n so I'll send this series
back for repair please.
Well, it was sufficient to add #ifdef CONFIG_SOFTWARE_SUSPEND around the
definition of software_suspend() in kernel/power/main.c.
The following series of patches compiles with CONFIG_SOFTWARE_SUSPEND=n too.
Greetings,
Rafael
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
- Follow-Ups:
- [PATCH 2/5] swsusp: do not use page flags
- From: Rafael J. Wysocki
- [PATCH 5/5] swsusp: Use GFP_KERNEL for creating basic data structures
- From: Rafael J. Wysocki
- [PATCH 3/5] mm: remove unused page flags
- From: Rafael J. Wysocki
- [PATCH 4/5] swsusp: fix error paths in snapshot_open
- From: Rafael J. Wysocki
- [PATCH 1/5] swsusp: Use inline functions for changing page flags
- From: Rafael J. Wysocki
- [PATCH 2/5] swsusp: do not use page flags
- References:
- [PATCH 0/3] swsusp: Stop using page flags
- From: Rafael J. Wysocki
- [PATCH 2/3] swsusp: Do not use page flags
- From: Rafael J. Wysocki
- Re: [PATCH 2/3] swsusp: Do not use page flags
- From: Andrew Morton
- [PATCH 0/3] swsusp: Stop using page flags
- Prev by Date: Respectfully submitted ( Bo Xilai )
- Next by Date: [PATCH 1/5] swsusp: Use inline functions for changing page flags
- Previous by thread: Re: [PATCH 2/3] swsusp: Do not use page flags
- Next by thread: [PATCH 1/5] swsusp: Use inline functions for changing page flags
- Index(es):