arm64: hibernate: add trans_pgd public functions
authorPavel Tatashin <pasha.tatashin@soleen.com>
Wed, 4 Dec 2019 15:59:23 +0000 (10:59 -0500)
committerWill Deacon <will@kernel.org>
Wed, 8 Jan 2020 16:55:12 +0000 (16:55 +0000)
commita2c2e67923ecb73c92028e9b128a9bd48d2e25e9
treeed546064587dbefb4a00bb5b8db631a48d651346
parent7ea4088938b793d9a8d4e205b2fe54fba4cf9739
arm64: hibernate: add trans_pgd public functions

trans_pgd_create_copy() and trans_pgd_map_page() are going to be
the basis for new shared code that handles page tables for cases
which are between kernels: kexec, and hibernate.

Note: Eventually, get_safe_page() will be moved into a function pointer
passed via argument, but for now keep it as is.

Signed-off-by: Pavel Tatashin <pasha.tatashin@soleen.com>
Reviewed-by: James Morse <james.morse@arm.com>
[will: Keep these functions static until kexec needs them]
Signed-off-by: Will Deacon <will@kernel.org>
arch/arm64/kernel/hibernate.c