diff options
author | Ping Cheng | 2023-02-24 08:26:43 -0800 |
---|---|---|
committer | Greg Kroah-Hartman | 2023-05-17 11:53:51 +0200 |
commit | fb98336e23c11e9c8c7dd5425ec71adbbef7f773 (patch) | |
tree | 55966a7333cdb0600d8f906ef95fc24f4451b982 /fs/ntfs3/bitmap.c | |
parent | fb2f0c00048bcbea29c230e3ad7f3e0cf5d2bbc2 (diff) |
HID: wacom: insert timestamp to packed Bluetooth (BT) events
commit 17d793f3ed53080dab6bbeabfc82de890c901001 upstream.
To fully utilize the BT polling/refresh rate, a few input events
are sent together to reduce event delay. This causes issue to the
timestamp generated by input_sync since all the events in the same
packet would pretty much have the same timestamp. This patch inserts
time interval to the events by averaging the total time used for
sending the packet.
This decision was mainly based on observing the actual time interval
between each BT polling. The interval doesn't seem to be constant,
due to the network and system environment. So, using solutions other
than averaging doesn't end up with valid timestamps.
Signed-off-by: Ping Cheng <ping.cheng@wacom.com>
Reviewed-by: Jason Gerecke <jason.gerecke@wacom.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'fs/ntfs3/bitmap.c')
0 files changed, 0 insertions, 0 deletions