summaryrefslogtreecommitdiff
path: root/tools/edid
diff options
context:
space:
mode:
authorNicholas Piggin <npiggin@gmail.com>2022-11-26 19:59:27 +1000
committerMichael Ellerman <mpe@ellerman.id.au>2022-12-02 17:48:50 +1100
commitf61ab43cc1a6146d6eef7e0713a452c3677ad13e (patch)
tree5c492373691342daebbb8422523b23aed23a3171 /tools/edid
parentbe742c573fdafcfa1752642ca1c7aaf08c258128 (diff)
powerpc/qspinlock: allow lock stealing in trylock and lock fastpath
This change allows trylock to steal the lock. It also allows the initial lock attempt to steal the lock rather than bailing out and going to the slow path. This gives trylock more strength: without this a continually-contended lock will never permit a trylock to succeed. With this change, the trylock has a small but non-zero chance. It also gives the lock fastpath most of the benefit of passing the reservation back through to the steal loop in the slow path without the complexity. 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-13-npiggin@gmail.com
Diffstat (limited to 'tools/edid')
0 files changed, 0 insertions, 0 deletions