summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJinbum Park <jinb.park7@gmail.com>2017-11-22 13:43:59 +0100
committerWill Deacon <will.deacon@arm.com>2017-12-01 14:05:04 +0100
commita349b30250634da20950eb91e2551dcd81f1805d (patch)
tree42c7f95a9e464d2cd31a3141b6bcd3699e17120b
parentarm64: ftrace: emit ftrace-mod.o contents through code (diff)
downloadlinux-a349b30250634da20950eb91e2551dcd81f1805d.tar.xz
linux-a349b30250634da20950eb91e2551dcd81f1805d.zip
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.c2
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)
{