]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc: Fix pgtable pmd cache init
authorNicholas Piggin <npiggin@gmail.com>
Tue, 3 Jan 2017 15:55:17 +0000 (01:55 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Wed, 18 Jan 2017 00:58:30 +0000 (11:58 +1100)
commit91917dec982dd2a673da70be72c85a6d06cb2bd5
tree4db392d212aab7a1190f304621fc81ee3639df77
parent25fb7f0e4bb027d506ae4d633d7d9db2f2b1d606
powerpc: Fix pgtable pmd cache init

Commit bb29371d53893 ("powerpc: port 64 bits pgtable_cache to 32 bits")
mixed up PMD_INDEX_SIZE and PMD_CACHE_INDEX a couple of times. This
resulted in 64s/hash/4k configs to panic at boot with a false positive
error check.

Fix that and simplify error handling by moving the check to the caller.

Fixes: bb29371d53893 ("powerpc: port 64 bits pgtable_cache to 32 bits")
Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/mm/hugetlbpage.c
arch/powerpc/mm/init-common.c