ANDROID: vendor hooks: Add hooks to support bootloader based hibernation
Add vendor hooks to disable randomization of swap slot allocation for swap partition used for saving hibernation image. Another level of randomization of swap slots takes place at the firmware level as well in order to address the wear leveling for UFS/MMC devices, so this vendor hook checks if a block device represents the swap partition being used for saving hibernation image, if yes, the swap slot allocation for such partition is serialized at kernel level. There is a performance advantage of reading contiguous pages of hibernation image, it makes the restore logic of hibernation image simpler and faster as there are no seeks involved in the secondary storage to read multiple contiguous pages of the image. Bug: 348576514 Change-Id: Id41a25fd15c5b71f8064f1c7d9cac9560fcdde85 Signed-off-by:Vivek Kumar <quic_vivekuma@quicinc.com> Signed-off-by:
Shreyas K K <quic_shrekk@quicinc.com> Signed-off-by:
Faiyaz Mohammed <quic_faiyazm@quicinc.com>
Loading
Please sign in to comment