powerpc/qspinlock: use spin_begin/end API
authorNicholas Piggin <npiggin@gmail.com>
Sat, 26 Nov 2022 09:59:28 +0000 (19:59 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Fri, 2 Dec 2022 06:48:50 +0000 (17:48 +1100)
commit71c235027ce7940434acd3f553602ad8b5d36469
tree9ca3b2ccacfc193106ade427e998f74f0e8b7616
parentf61ab43cc1a6146d6eef7e0713a452c3677ad13e
powerpc/qspinlock: use spin_begin/end API

Use the spin_begin/spin_cpu_relax/spin_end APIs in qspinlock, which helps
to prevent threads issuing a lot of expensive priority nops which may not
have much effect due to immediately executing low then medium priority.

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