]> git.baikalelectronics.ru Git - kernel.git/commit
arm64: kexec: skip relocation code for inplace kexec
authorPasha Tatashin <pasha.tatashin@soleen.com>
Thu, 30 Sep 2021 14:31:03 +0000 (14:31 +0000)
committerWill Deacon <will@kernel.org>
Fri, 1 Oct 2021 12:31:00 +0000 (13:31 +0100)
commit8bc6d73e0c61f57d3464fb2d6c0703d37bcaa180
treef660dc2458c8a65dd6276c1279e572f49c59fb7d
parent16fe1f7c3f87e38824aba95d6abe1997d5343bd9
arm64: kexec: skip relocation code for inplace kexec

In case of kdump or when segments are already in place the relocation
is not needed, therefore the setup of relocation function and call to
it can be skipped.

Signed-off-by: Pasha Tatashin <pasha.tatashin@soleen.com>
Suggested-by: James Morse <james.morse@arm.com>
Acked-by: Catalin Marinas <catalin.marinas@arm.com>
Link: https://lore.kernel.org/r/20210930143113.1502553-6-pasha.tatashin@soleen.com
Signed-off-by: Will Deacon <will@kernel.org>
arch/arm64/kernel/machine_kexec.c
arch/arm64/kernel/relocate_kernel.S