-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
arm64: hibernate: move page handling function to new trans_pgd.c
Now, that we abstracted the required functions move them to a new home. Later, we will generalize these function in order to be useful outside of hibernation. Signed-off-by: Pavel Tatashin <pasha.tatashin@soleen.com> Reviewed-by: James Morse <james.morse@arm.com> Link: https://lore.kernel.org/r/20210125191923.1060122-4-pasha.tatashin@soleen.com Signed-off-by: Will Deacon <will@kernel.org>
- Loading branch information
Pavel Tatashin
authored and
Will Deacon
committed
Jan 27, 2021
1 parent
41f67d4
commit 072e3d9
Showing
5 changed files
with
277 additions
and
227 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
/* SPDX-License-Identifier: GPL-2.0 */ | ||
|
||
/* | ||
* Copyright (c) 2020, Microsoft Corporation. | ||
* Pavel Tatashin <pasha.tatashin@soleen.com> | ||
*/ | ||
|
||
#ifndef _ASM_TRANS_TABLE_H | ||
#define _ASM_TRANS_TABLE_H | ||
|
||
#include <linux/bits.h> | ||
#include <linux/types.h> | ||
#include <asm/pgtable-types.h> | ||
|
||
int trans_pgd_create_copy(pgd_t **dst_pgdp, unsigned long start, | ||
unsigned long end); | ||
|
||
int trans_pgd_map_page(pgd_t *trans_pgd, void *page, unsigned long dst_addr, | ||
pgprot_t pgprot); | ||
|
||
#endif /* _ASM_TRANS_TABLE_H */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.