diff options
| author | Mathieu Poirier <[email protected]> | 2019-04-25 13:52:56 -0600 |
|---|---|---|
| committer | Greg Kroah-Hartman <[email protected]> | 2019-04-25 22:00:16 +0200 |
| commit | f973d88b75703719d39c4d5145079199aaf442b2 (patch) | |
| tree | 3abbbcce4aa7204d7584b3bcfaca818f910d7a63 /tools/perf/scripts/python/bin/stackcollapse-record | |
| parent | 6c817a95d84b8388e97d4e2b6ee361a660e244e9 (diff) | |
coresight: Move reference counting inside sink drivers
When operating in CPU-wide mode with an N:1 source/sink HW topology,
multiple CPUs can access a sink concurrently. As such reference counting
needs to happen when the device's spinlock is held to avoid racing with
other operations (start(), update(), stop()), such as:
session A Session B
----- -------
enable_sink
atomic_inc(refcount) = 1
...
atomic_dec(refcount) = 0 enable_sink
if (refcount == 0) disable_sink
atomic_inc()
Signed-off-by: Mathieu Poirier <[email protected]>
Reviewed-by: Suzuki K Poulose <[email protected]>
Tested-by: Leo Yan <[email protected]>
Tested-by: Robert Walker <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/bin/stackcollapse-record')
0 files changed, 0 insertions, 0 deletions