powerpc/64s: Use dec_mm_active_cpus helper
authorNicholas Piggin <npiggin@gmail.com>
Wed, 24 May 2023 06:08:19 +0000 (16:08 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Wed, 2 Aug 2023 12:22:18 +0000 (22:22 +1000)
commitf74b2a6c01a0b319070ccee7dea0cc4dad694041
tree15ee35bed11fd3913065932386d54ff15ad19fcf
parentc3c2e93753484bb4e935ed8205c1f569907f5970
powerpc/64s: Use dec_mm_active_cpus helper

Avoid open-coded atomic_dec on mm->context.active_cpus and use the
function made for it. Add CONFIG_DEBUG_VM underflow checking on the
counter.

Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://msgid.link/20230524060821.148015-3-npiggin@gmail.com
arch/powerpc/include/asm/book3s/64/mmu.h
arch/powerpc/include/asm/mmu_context.h
arch/powerpc/mm/book3s64/radix_tlb.c