diff options
author | AKASHI Takahiro <takahiro.akashi@linaro.org> | 2017-04-03 05:24:35 +0300 |
---|---|---|
committer | Catalin Marinas <catalin.marinas@arm.com> | 2017-04-05 20:28:50 +0300 |
commit | 254a41c0ba0573fa23272945d3fbe39efcc5d07d (patch) | |
tree | c61688a81414d3a4c0b5117ff6a7a24d23260f68 /lib/find_bit.c | |
parent | 98d2e1539b84abddce4b3c2ca8733f6aeacdee47 (diff) | |
download | linux-254a41c0ba0573fa23272945d3fbe39efcc5d07d.tar.xz |
arm64: hibernate: preserve kdump image around hibernation
Since arch_kexec_protect_crashkres() removes a mapping for crash dump
kernel image, the loaded data won't be preserved around hibernation.
In this patch, helper functions, crash_prepare_suspend()/
crash_post_resume(), are additionally called before/after hibernation so
that the relevant memory segments will be mapped again and preserved just
as the others are.
In addition, to minimize the size of hibernation image, crash_is_nosave()
is added to pfn_is_nosave() in order to recognize only the pages that hold
loaded crash dump kernel image as saveable. Hibernation excludes any pages
that are marked as Reserved and yet "nosave."
Signed-off-by: AKASHI Takahiro <takahiro.akashi@linaro.org>
Reviewed-by: James Morse <james.morse@arm.com>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
Diffstat (limited to 'lib/find_bit.c')
0 files changed, 0 insertions, 0 deletions