OSDN Git Service

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)
commitffbe5d21d10f9c7890c07fca17db772f941385bf
tree893cb1c0e436b566ae026161181d8cde562b34f5
parentf43d2ffb47c9e86f5ec24e1de6ce6da6808634a2
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