]> git.baikalelectronics.ru Git - kernel.git/commit
arm64: hibernate: pass the allocated pgdp to ttbr0
authorPavel Tatashin <pasha.tatashin@soleen.com>
Wed, 4 Dec 2019 15:59:18 +0000 (10:59 -0500)
committerWill Deacon <will@kernel.org>
Wed, 8 Jan 2020 16:32:55 +0000 (16:32 +0000)
commit6d2fe9d44c73e961239e60aa29f53ad3cc5baf5a
tree53fa06a2016ae4a5aed8ca41b0a9756e64bcf19a
parent401911d35f5172816ba0fc9915ff4df23c194932
arm64: hibernate: pass the allocated pgdp to ttbr0

ttbr0 should be set to the beginning of pgdp, however, currently
in create_safe_exec_page it is set to pgdp after pgd_offset_raw(),
which works by accident.

Signed-off-by: Pavel Tatashin <pasha.tatashin@soleen.com>
Reviewed-by: James Morse <james.morse@arm.com>
Signed-off-by: Will Deacon <will@kernel.org>
arch/arm64/kernel/hibernate.c