diff options
author | Christophe JAILLET <christophe.jaillet@wanadoo.fr> | 2021-07-23 17:41:52 +0200 |
---|---|---|
committer | Jiri Kosina <jkosina@suse.cz> | 2021-08-20 14:20:34 +0200 |
commit | 46dcd1cc2b2fa43bd99f39c7c236d5cdb80522f0 (patch) | |
tree | bb01b4c683710cae8a5463a1ab62292f70647ed4 /tools/perf/scripts/python/export-to-sqlite.py | |
parent | df04fbe8680bfe07f3d7487eccff9f768bb02533 (diff) |
HID: logitech-hidpp: Use 'atomic_inc_return' instead of hand-writing it
This function logs a warning if the workqueue gets too big.
In order to save a few cycles, use 'atomic_inc_return()' instead of an
'atomic_inc()/atomic_read()' sequence.
This axes a line of code and saves a 'atomic_read()' call.
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions