]> git.baikalelectronics.ru Git - kernel.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)
committerMichael Ellerman <mpe@ellerman.id.au>
Thu, 26 Nov 2020 13:10:39 +0000 (00:10 +1100)
commitf5d00030c30a22d4b5027324d595d216bba19968
treebe7cfc8d1668880947fd167def2b38d39ad15092
parente578014a1cf4f5c03156bc4d53efe310b1429f2c
kernel/cpu: add arch override for clear_tasks_mm_cpumask() mm handling

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
kernel/cpu.c