powerpc/qspinlock: add ability to prod new queue head CPU
authorNicholas Piggin <npiggin@gmail.com>
Sat, 26 Nov 2022 09:59:26 +0000 (19:59 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Fri, 2 Dec 2022 06:48:50 +0000 (17:48 +1100)
commitbe742c573fdafcfa1752642ca1c7aaf08c258128
treea7e1bf1729b2991854fbc330e2a6f529f0cad587
parent28db61e207ea3890d286cff3141c1ce67346074d
powerpc/qspinlock: add ability to prod new queue head CPU

After the head of the queue acquires the lock, it releases the
next waiter in the queue to become the new head. Add an option
to prod the new head if its vCPU was preempted. This may only
have an effect if queue waiters are yielding.

Disable this option by default for now, i.e., no logical change.

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-12-npiggin@gmail.com
arch/powerpc/lib/qspinlock.c