Commit 7fec6d61 authored by Shreyas K K's avatar Shreyas K K Committed by Treehugger Robot
Browse files

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: default avatarVivek Kumar <quic_vivekuma@quicinc.com>
Signed-off-by: default avatarShreyas K K <quic_shrekk@quicinc.com>
Signed-off-by: default avatarFaiyaz Mohammed <quic_faiyazm@quicinc.com>
parent 08518537
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment