Skip to content
Commit 019002f2 authored by Paul Cercueil's avatar Paul Cercueil Committed by Dmitry Torokhov
Browse files

Input: gpio-keys - use hrtimer for release timer



Dealing with input, timing is important; if the button should be
released in one millisecond, then it should be done in one millisecond
and not a hundred milliseconds.

Therefore, the standard timer API is not really suitable for this task.

Convert the gpio-keys driver to use a hrtimer instead of the standard
timer to address this issue.

Note that by using a hard IRQ for the hrtimer callback, we can get rid
of the spin_lock_irqsave() and spin_unlock_irqrestore().

Signed-off-by: default avatarPaul Cercueil <paul@crapouillou.net>
Link: https://lore.kernel.org/r/20210307222240.380583-2-paul@crapouillou.net


Signed-off-by: default avatarDmitry Torokhov <dmitry.torokhov@gmail.com>
parent 36a8fc6f
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment