lkml.org 
[lkml]   [2021]   [Mar]   [23]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH v3 2/3] input: gpio-keys: Use hrtimer for release timer
On Sun, Mar 07, 2021 at 10:22:39PM +0000, Paul Cercueil wrote:
> 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: Paul Cercueil <paul@crapouillou.net>

Applied, thank you.

--
Dmitry

\
 
 \ /
  Last update: 2021-03-23 22:35    [W:0.208 / U:0.044 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site