powerpc: Account mm_cpumask and active_cpus in init_mm
authorNicholas Piggin <npiggin@gmail.com>
Wed, 24 May 2023 06:08:18 +0000 (16:08 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Wed, 2 Aug 2023 12:22:18 +0000 (22:22 +1000)
commitc3c2e93753484bb4e935ed8205c1f569907f5970
tree55a5f271fb496d435ae6b1c36766c125d9c5e7fb
parentab481817912ec5c882a6a42ce12c57aed3cfd506
powerpc: Account mm_cpumask and active_cpus in init_mm

init_mm mm_cpumask and context.active_cpus is not maintained at boot
and hotplug. This seems to be harmless because init_mm does not have a
userspace and so never gets user TLBs flushed, but it looks odd and it
prevents some sanity checks being added.

Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://msgid.link/20230524060821.148015-2-npiggin@gmail.com
arch/powerpc/kernel/setup-common.c
arch/powerpc/kernel/smp.c
arch/powerpc/mm/mmu_context.c