summaryrefslogtreecommitdiffstats
path: root/net/packet/diag.c
diff options
context:
space:
mode:
authorNicholas Piggin <npiggin@gmail.com>2022-11-26 19:59:17 +1000
committerMichael Ellerman <mpe@ellerman.id.au>2022-12-02 17:48:49 +1100
commit4c93c2e4b9e8988511c06b9c042f23d4b8f593ad (patch)
tree7e8f54d808a17fd46eb79d5f43d228b6af175af0 /net/packet/diag.c
parent84990b169557428c318df87b7836cd15f65b62dc (diff)
downloadlinux-4c93c2e4b9e8988511c06b9c042f23d4b8f593ad.tar.bz2
powerpc/qspinlock: use a half-word store to unlock to avoid larx/stcx.
The first 16 bits of the lock are only modified by the owner, and other modifications always use atomic operations on the entire 32 bits, so unlocks can use plain stores on the 16 bits. This is the same kind of optimisation done by core qspinlock code. 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-3-npiggin@gmail.com
Diffstat (limited to 'net/packet/diag.c')
0 files changed, 0 insertions, 0 deletions