diff options
author | Jinbum Park <jinb.park7@gmail.com> | 2017-11-22 07:43:59 -0500 |
---|---|---|
committer | Will Deacon <will.deacon@arm.com> | 2017-12-01 08:05:04 -0500 |
commit | a349b30250634da20950eb91e2551dcd81f1805d (patch) | |
tree | 42c7f95a9e464d2cd31a3141b6bcd3699e17120b | |
parent | be0f272bfc83797f70d44faca86954df62e2bbc0 (diff) |
arm64: pgd: Mark pgd_cache as __ro_after_init
pgd_cache is setup once while init stage and never changed after
that, so it is good candidate for __ro_after_init
Signed-off-by: Jinbum Park <jinb.park7@gmail.com>
Signed-off-by: Will Deacon <will.deacon@arm.com>
-rw-r--r-- | arch/arm64/mm/pgd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm64/mm/pgd.c b/arch/arm64/mm/pgd.c index 371c5f03a170..051e71ec3335 100644 --- a/arch/arm64/mm/pgd.c +++ b/arch/arm64/mm/pgd.c | |||
@@ -26,7 +26,7 @@ | |||
26 | #include <asm/page.h> | 26 | #include <asm/page.h> |
27 | #include <asm/tlbflush.h> | 27 | #include <asm/tlbflush.h> |
28 | 28 | ||
29 | static struct kmem_cache *pgd_cache; | 29 | static struct kmem_cache *pgd_cache __ro_after_init; |
30 | 30 | ||
31 | pgd_t *pgd_alloc(struct mm_struct *mm) | 31 | pgd_t *pgd_alloc(struct mm_struct *mm) |
32 | { | 32 | { |