]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
kernel/cpu: add arch override for clear_tasks_mm_cpumask() mm handling
authorNicholas Piggin <npiggin@gmail.com>
Thu, 26 Nov 2020 10:25:29 +0000 (20:25 +1000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 29 Dec 2020 12:46:47 +0000 (13:46 +0100)
commit8859f5899ab92da690d6287dd339805155fa4fb6
treed2ca7b450c322bd74b10617b771c1d64664602a3
parent4b9ea5d4198794e4bdd9a1226cb22302f6d805a1
kernel/cpu: add arch override for clear_tasks_mm_cpumask() mm handling

[ Upstream commit 8ff00399b153440c1c83e20c43020385b416415b ]

powerpc/64s keeps a counter in the mm which counts bits set in
mm_cpumask as well as other things. This means it can't use generic code
to clear bits out of the mask and doesn't adjust the arch specific
counter.

Add an arch override that allows powerpc/64s to use
clear_tasks_mm_cpumask().

Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
Reviewed-by: Aneesh Kumar K.V <aneesh.kumar@linux.ibm.com>
Acked-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20201126102530.691335-4-npiggin@gmail.com
Signed-off-by: Sasha Levin <sashal@kernel.org>
kernel/cpu.c