]> git.baikalelectronics.ru Git - kernel.git/commit
arm64/mm: don't initialize pgd_cache twice
authorMike Rapoport <rppt@linux.ibm.com>
Tue, 18 Jun 2019 07:32:29 +0000 (10:32 +0300)
committerWill Deacon <will.deacon@arm.com>
Tue, 18 Jun 2019 13:37:28 +0000 (14:37 +0100)
commit68f879ad286a63bd182006899ddb8e1311593bbd
treed30ad9da197028f18023b64e051c264484628b68
parentedae7ee69549ffc828dfbadf10031d0a127f262f
arm64/mm: don't initialize pgd_cache twice

When PGD_SIZE != PAGE_SIZE, arm64 uses kmem_cache for allocation of PGD
memory. That cache was initialized twice: first through
pgtable_cache_init() alias and then as an override for weak
pgd_cache_init().

Remove the alias from pgtable_cache_init() and keep the only pgd_cache
initialization in pgd_cache_init().

Fixes: 708b1b4d6c91 ("x86/mm: Initialize PGD cache during mm initialization")
Signed-off-by: Mike Rapoport <rppt@linux.ibm.com>
Signed-off-by: Will Deacon <will.deacon@arm.com>
arch/arm64/include/asm/pgtable.h