]> git.baikalelectronics.ru Git - kernel.git/commit
net: dsa: mv88e6xxx: introduce helpers for handling chip->reg_lock
authorRasmus Villemoes <rasmus.villemoes@prevas.dk>
Thu, 20 Jun 2019 13:50:42 +0000 (13:50 +0000)
committerDavid S. Miller <davem@davemloft.net>
Sun, 23 Jun 2019 18:11:11 +0000 (11:11 -0700)
commit7be4010fa5c60b0729d90fa2c8b16f5485d05e5d
treee9945d5733e3a9681445f56eaf955719e9ca14b0
parent6b4a712e2de018285b2b2b0c9e353c45486cf23f
net: dsa: mv88e6xxx: introduce helpers for handling chip->reg_lock

This is a no-op that simply moves all locking and unlocking of
->reg_lock into trivial helpers. I did that to be able to easily add
some ad hoc instrumentation to those helpers to get some information
on contention and hold times of the mutex. Perhaps others want to do
something similar at some point, so this frees them from doing the
'sed -i' yoga, and have a much smaller 'git diff' while fiddling.

Signed-off-by: Rasmus Villemoes <rasmus.villemoes@prevas.dk>
Reviewed-by: Vivien Didelot <vivien.didelot@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/dsa/mv88e6xxx/chip.c
drivers/net/dsa/mv88e6xxx/chip.h
drivers/net/dsa/mv88e6xxx/global1_atu.c
drivers/net/dsa/mv88e6xxx/global1_vtu.c
drivers/net/dsa/mv88e6xxx/global2.c
drivers/net/dsa/mv88e6xxx/hwtstamp.c
drivers/net/dsa/mv88e6xxx/phy.c
drivers/net/dsa/mv88e6xxx/ptp.c
drivers/net/dsa/mv88e6xxx/serdes.c