Skip to contentSkip to conversation

PM: Compress hibernation image with LZO

PATCH In review Bojan Smojver 1 participant 2 messages Aug 5, 2010

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/2 PM: Compress hibernation image with LZO

Compress hibernation image with LZO in order to save on I/O and therefore time to hibernate/thaw.

---

 kernel/power/Kconfig |    2 +
 kernel/power/swap.c  |  205 ++++++++++++++++++++++++++++++++++++++++++++------
 2 files changed, 183 insertions(+), 24 deletions(-)
kernel/power/Kconfig +2 -0
index ca6066a..cb57eb9 100644
@@ -137,6 +137,8 @@ config SUSPEND_FREEZER
 config HIBERNATION
 	bool "Hibernation (aka 'suspend to disk')"
 	depends on PM && SWAP && ARCH_HIBERNATION_POSSIBLE
+	select LZO_COMPRESS
+	select LZO_DECOMPRESS
 	select SUSPEND_NVS if HAS_IOMEM
 	---help---
 	  Enable the suspend to disk (STD) functionality, which is usually
kernel/power/swap.c +181 -24

270 lines not on this page · raw message

Signature · 1 line
Bojan
#1 lore raw
Quoted 2 lines · Bojan Smojver

Compress hibernation image with LZO in order to save on I/O and therefore time to hibernate/thaw.

Oh, and I'm not on the list, so please CC me if you wish to reply.

Signature · 1 line
Bojan