diff options
author | Remi Pommarel <repk@triplefau.lt> | 2024-11-22 16:52:51 +0100 |
---|---|---|
committer | Simon Wunderlich <sw@simonwunderlich.de> | 2024-12-05 22:38:43 +0100 |
commit | 8587e0e3f562b09bbfe0df1b0c506066095043e4 (patch) | |
tree | 4bc90ab1caa40b2a41caf57de598bd7c534c14fd /tools/perf/scripts/python/export-to-sqlite.py | |
parent | a7d5100ed0099a9f21b796017908cc7ece5332e4 (diff) |
batman-adv: Remove atomic usage for tt.local_changes
The tt.local_changes atomic is either written with tt.changes_list_lock
or close to it (see batadv_tt_local_event()). Thus the performance gain
using an atomic was limited (or because of atomic_read() impact even
negative). Using atomic also comes with the need to be wary of potential
negative tt.local_changes value.
Simplify the tt.local_changes usage by removing the atomic property and
modifying it only with tt.changes_list_lock held.
Signed-off-by: Remi Pommarel <repk@triplefau.lt>
Signed-off-by: Sven Eckelmann <sven@narfation.org>
Signed-off-by: Simon Wunderlich <sw@simonwunderlich.de>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions