diff options
| author | Benjamin Tissoires <[email protected]> | 2017-06-15 13:32:05 +0000 |
|---|---|---|
| committer | Jiri Kosina <[email protected]> | 2017-06-23 08:16:17 +0000 |
| commit | 9609827458c37d7b2c37f2a9255631c603a5004c (patch) | |
| tree | f947131dc722f22ea87c3c01fbbfccdc333074da /net/unix/af_unix.c | |
| parent | HID: multitouch: fix rare Win 8 cases when the touch up event gets missing (diff) | |
| download | kernel-9609827458c37d7b2c37f2a9255631c603a5004c.tar.gz kernel-9609827458c37d7b2c37f2a9255631c603a5004c.zip | |
HID: multitouch: optimize the sticky fingers timer
Instead of unconditionally expiring the timer and calling a long
mt_release_contacts(), we can check if some slots are used when the
timer expires.
We can also remove the timer if we happen to receive all the releases.
The logic behind the MT_IO_FLAGS_PENDING_SLOTS could be implemented by
counting how many slots are active, but using bits feels slightly more
efficient.
Signed-off-by: Benjamin Tissoires <[email protected]>
Tested-by: Arek Burdach <[email protected]>
Signed-off-by: Jiri Kosina <[email protected]>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions
