PM: hibernate: Move to crypto APIs for LZO compression
authorNikhil V <quic_nprakash@quicinc.com>
Mon, 22 Jan 2024 13:15:26 +0000 (18:45 +0530)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Mon, 5 Feb 2024 13:28:54 +0000 (14:28 +0100)
commita06c6f5d3cc90b3b070d7b99979d57238db77a86
treef52374ea2f6a428837de034636c22720cc9d8369
parent89a807625f9701154167bf6bf136adfa1be4d849
PM: hibernate: Move to crypto APIs for LZO compression

Currently for hibernation, LZO is the only compression algorithm
available and uses the existing LZO library calls. However, there
is no flexibility to switch to other algorithms which provides better
results. The main idea is that different compression algorithms have
different characteristics and hibernation may benefit when it uses
alternate algorithms.

By moving to crypto based APIs, it lays a foundation to use other
compression algorithms for hibernation. There are no functional changes
introduced by this approach.

Signed-off-by: Nikhil V <quic_nprakash@quicinc.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
kernel/power/Kconfig
kernel/power/hibernate.c
kernel/power/power.h
kernel/power/swap.c