summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/syscall-counts.py
diff options
context:
space:
mode:
authorVladimir Oltean <vladimir.oltean@nxp.com>2022-09-08 19:48:04 +0300
committerDavid S. Miller <davem@davemloft.net>2022-09-09 12:59:12 +0300
commit96980ff7c2caa5baef0c684e719547a53762e82c (patch)
treee5f702255b90a8d9d33d45de3cc4bf7543b1977a /tools/perf/scripts/python/syscall-counts.py
parent0a2360c59687e4caec363565c166e8a2b3e30677 (diff)
downloadlinux-96980ff7c2caa5baef0c684e719547a53762e82c.tar.xz
net: mscc: ocelot: make access to STAT_VIEW sleepable again
To support SPI-controlled switches in the future, access to SYS_STAT_CFG_STAT_VIEW needs to be done outside of any spinlock protected region, but it still needs to be serialized (by a mutex). Split the ocelot->stats_lock spinlock into a mutex that serializes indirect access to hardware registers (ocelot->stat_view_lock) and a spinlock that serializes access to the u64 ocelot->stats array. Signed-off-by: Vladimir Oltean <vladimir.oltean@nxp.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'tools/perf/scripts/python/syscall-counts.py')
0 files changed, 0 insertions, 0 deletions