]> 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)
commit3506dbb7daa734b1f0f8b6b482dd691dc6e6f81f
tree4db392d212aab7a1190f304621fc81ee3639df77
parentfdd2cec036fe06a28cbf058222af906c2be8dd34
powerpc: Fix pgtable pmd cache init

Commit 2ea8df2426b71 ("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: 2ea8df2426b71 ("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