summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/exported-sql-viewer.py
diff options
context:
space:
mode:
authorKoby Elbaz <kelbaz@habana.ai>2023-02-23 19:17:02 +0300
committerOded Gabbay <ogabbay@kernel.org>2023-03-15 14:29:15 +0300
commit7ffb5ced2bc3578b221007467cef8a032c189b0a (patch)
tree429d04ac8065b38a5c36a4b35048e8fff8e24c84 /tools/perf/scripts/python/exported-sql-viewer.py
parentc7ac65c881eae0358b91bd2045ab81b452d2e716 (diff)
downloadlinux-7ffb5ced2bc3578b221007467cef8a032c189b0a.tar.xz
accel/habanalabs: use a mutex rather than a spinlock
There are two reasons why mutex is better here: 1. There's a critical section relatively long, where in certain scenarios (e.g., multiple VM allocations) taking a spinlock might cause noticeable performance degradation. 2. It will remove the incorrect usage of mutex under spin_lock (where preemption is disabled). Reported-by: Dan Carpenter <error27@gmail.com> Signed-off-by: Koby Elbaz <kelbaz@habana.ai> Reviewed-by: Oded Gabbay <ogabbay@kernel.org> Signed-off-by: Oded Gabbay <ogabbay@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions