powerpc/qspinlock: paravirt yield to lock owner
authorNicholas Piggin <npiggin@gmail.com>
Sat, 26 Nov 2022 09:59:22 +0000 (19:59 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Fri, 2 Dec 2022 06:48:49 +0000 (17:48 +1100)
commit085f03311bcede99550e08a1f7cad41bf758b460
treebdc252e5499adbcf9295f9636b62a89ddd9fd896
parente1a31e7fd7130628cfd229253da2b4630e7a809c
powerpc/qspinlock: paravirt yield to lock owner

Waiters spinning on the lock word should yield to the lock owner if the
vCPU is preempted. This improves performance when the hypervisor has
oversubscribed physical CPUs.

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