]> asedeno.scripts.mit.edu Git - linux.git/commit
net: dsa: mv88e6xxx: Release mutex between each statistics read
authorAndrew Lunn <andrew@lunn.ch>
Thu, 15 Feb 2018 13:38:34 +0000 (14:38 +0100)
committerDavid S. Miller <davem@davemloft.net>
Fri, 16 Feb 2018 20:37:09 +0000 (15:37 -0500)
commit377cda13a25513f714ea5b5a765408292ca4627a
tree262d89cd47aab4e32940865e14e98dd07f558297
parent65bd449c32c2745df61913ab54087e77f9d9b70d
net: dsa: mv88e6xxx: Release mutex between each statistics read

The PTP code needs low latency access to the PTP hardware timestamps.
Reading all the statistics in one go adds a lot of latency to the PTP
code. So take and release the reg_lock mutex for each individual
statistics, allowing the PTP thread jump in between.

Signed-off-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/dsa/mv88e6xxx/chip.c