X-Git-Url: https://git.karo-electronics.de/?a=blobdiff_plain;f=arch%2Farm64%2Fmm%2Fpgd.c;h=ae11d4e03d0e68d7f0fe621f1c9d313fcab09127;hb=f13577e8aa863cf3b4f17541bc74f8e9b0b40c90;hp=cb3ba1b812e74dcd1acbc167756d60da331d105f;hpb=d1208404dd477c142680437137c9996b95bfd508;p=karo-tx-linux.git diff --git a/arch/arm64/mm/pgd.c b/arch/arm64/mm/pgd.c index cb3ba1b812e7..ae11d4e03d0e 100644 --- a/arch/arm64/mm/pgd.c +++ b/arch/arm64/mm/pgd.c @@ -46,14 +46,14 @@ void pgd_free(struct mm_struct *mm, pgd_t *pgd) kmem_cache_free(pgd_cache, pgd); } -static int __init pgd_cache_init(void) +void __init pgd_cache_init(void) { + if (PGD_SIZE == PAGE_SIZE) + return; + /* * Naturally aligned pgds required by the architecture. */ - if (PGD_SIZE != PAGE_SIZE) - pgd_cache = kmem_cache_create("pgd_cache", PGD_SIZE, PGD_SIZE, - SLAB_PANIC, NULL); - return 0; + pgd_cache = kmem_cache_create("pgd_cache", PGD_SIZE, PGD_SIZE, + SLAB_PANIC, NULL); } -core_initcall(pgd_cache_init);