powerpc: Add mm_cpumask warning when context switching
authorNicholas Piggin <npiggin@gmail.com>
Wed, 24 May 2023 06:08:20 +0000 (16:08 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Wed, 2 Aug 2023 12:22:19 +0000 (22:22 +1000)
commit177255afb40548fdf504384b361d18d6cbe35d1e
treeab5cb870847432c97bbeec5e16e22ee59204cbb4
parentf74b2a6c01a0b319070ccee7dea0cc4dad694041
powerpc: Add mm_cpumask warning when context switching

When context switching away from an mm, add a CONFIG_DEBUG_VM warning
check to ensure this CPU is still set in the mask. This could catch
bugs where the mask is improperly trimmed while the CPU is still using
the mm.

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