BACKPORT: 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. Bug: 335581841 Signed-off-by:Nikhil V <quic_nprakash@quicinc.com> Signed-off-by:
Rafael J. Wysocki <rafael.j.wysocki@intel.com> (cherry picked from commit a06c6f5d) Change-Id: I8d15262f9823219d291b84eab28b2ec44474dad4 [quic_nprakash: Resolved minor conflicts in kernel/power/(power.h,swap.c)] Signed-off-by:
Nikhil V <quic_nprakash@quicinc.com>
Loading