powerpc/qspinlock: reduce remote node steal spins
authorNicholas Piggin <npiggin@gmail.com>
Sat, 26 Nov 2022 09:59:29 +0000 (19:59 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Fri, 2 Dec 2022 06:48:50 +0000 (17:48 +1100)
commitcc79701114154efe79663ba47d9e51aad2ed3c78
treef8da94f39a5a1fc2a1d3f10814803d5fd889b336
parent71c235027ce7940434acd3f553602ad8b5d36469
powerpc/qspinlock: reduce remote node steal spins

Allow for a reduction in the number of times a CPU from a different
node than the owner can attempt to steal the lock before queueing.
This could bias the transfer behaviour of the lock across the
machine and reduce NUMA crossings.

Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20221126095932.1234527-15-npiggin@gmail.com
arch/powerpc/lib/qspinlock.c