diff options
author | Jinbum Park <jinb.park7@gmail.com> | 2017-11-22 21:43:59 +0900 |
---|---|---|
committer | Will Deacon <will.deacon@arm.com> | 2017-12-01 13:05:04 +0000 |
commit | a349b30250634da20950eb91e2551dcd81f1805d (patch) | |
tree | 42c7f95a9e464d2cd31a3141b6bcd3699e17120b /arch/arm64/mm | |
parent | be0f272bfc83797f70d44faca86954df62e2bbc0 (diff) | |
download | linux-a349b30250634da20950eb91e2551dcd81f1805d.tar.bz2 |
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>
Diffstat (limited to 'arch/arm64/mm')
-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 @@ #include <asm/page.h> #include <asm/tlbflush.h> -static struct kmem_cache *pgd_cache; +static struct kmem_cache *pgd_cache __ro_after_init; pgd_t *pgd_alloc(struct mm_struct *mm) { |