diff options
author | Christophe JAILLET <christophe.jaillet@wanadoo.fr> | 2021-07-23 18:41:52 +0300 |
---|---|---|
committer | Jiri Kosina <jkosina@suse.cz> | 2021-08-20 15:20:34 +0300 |
commit | 46dcd1cc2b2fa43bd99f39c7c236d5cdb80522f0 (patch) | |
tree | bb01b4c683710cae8a5463a1ab62292f70647ed4 /scripts/gdb/linux/utils.py | |
parent | df04fbe8680bfe07f3d7487eccff9f768bb02533 (diff) | |
download | linux-46dcd1cc2b2fa43bd99f39c7c236d5cdb80522f0.tar.xz |
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 'scripts/gdb/linux/utils.py')
0 files changed, 0 insertions, 0 deletions