Commit d7e1f4f0 authored by Shreyas K K's avatar Shreyas K K Committed by Carlos Llamas
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: 279879797
Change-Id: I8258b5166d8c6952fe9eb91a5a9826f33b836f00
Signed-off-by: default avatarVivek Kumar <quic_vivekuma@quicinc.com>
Signed-off-by: default avatarShreyas K K <quic_shrekk@quicinc.com>
parent d57acebb
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment