summaryrefslogtreecommitdiff
path: root/arch/loongarch/Kbuild
diff options
context:
space:
mode:
authorHuacai Chen <chenhuacai@loongson.cn>2024-07-20 17:41:06 +0300
committerHuacai Chen <chenhuacai@loongson.cn>2024-07-20 17:41:06 +0300
commit67e6b115ddcf8f03108cedcf66261153904ce4fb (patch)
tree373fd51d67127b34c507421dc32bc65d2f1eeb44 /arch/loongarch/Kbuild
parente523a5a65f34ca5bd67ccfdfdccf04689b58f0bf (diff)
downloadlinux-67e6b115ddcf8f03108cedcf66261153904ce4fb.tar.xz
LoongArch: Automatically disable KASLR for hibernation
Hibernation assumes the memory layout after resume be the same as that before sleep, so it expects the kernel is loaded at the same position. To achieve this goal we automatically disable KASLR if user explicitly requests hibernation via the "resume=" command line. Since "nohibernate" and "noresume" have higher priorities than "resume=", we only disable KASLR if there is no "nohibernate" and "noresume". Signed-off-by: Huacai Chen <chenhuacai@loongson.cn>
Diffstat (limited to 'arch/loongarch/Kbuild')
0 files changed, 0 insertions, 0 deletions