]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/64: pcpu setup avoid reading mmu_linear_psize on 64e or radix
authorNicholas Piggin <npiggin@gmail.com>
Wed, 1 Dec 2021 14:41:46 +0000 (00:41 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Thu, 2 Dec 2021 11:57:23 +0000 (22:57 +1100)
commitcec865bafd0fad9cfcb3b71fd95339d9b78ebe40
tree893cb1c0e436b566ae026161181d8cde562b34f5
parent067713454503fd292f6de5121a0f9fa27e6353ab
powerpc/64: pcpu setup avoid reading mmu_linear_psize on 64e or radix

Radix never sets mmu_linear_psize so it's always 4K, which causes pcpu
atom_size to always be PAGE_SIZE. 64e sets it to 1GB always.

Make paths for these platforms to be explicit about what value they set
atom_size to.

Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20211201144153.2456614-12-npiggin@gmail.com
arch/powerpc/kernel/setup_64.c