]> git.baikalelectronics.ru Git - kernel.git/commit
Input: sysrq - supplement reset sequence with timeout functionality
authorMathieu J. Poirier <mathieu.poirier@linaro.org>
Tue, 2 Apr 2013 05:14:19 +0000 (22:14 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Tue, 2 Apr 2013 05:22:19 +0000 (22:22 -0700)
commit98854adf31069d3d2a5035a9a65ab10b9f715930
treef6bbe33c95c1768a3e8cc474c8be43a9b11b40a4
parent7a33fb76905439bc972e7bacbeb4a6b3d9bd893f
Input: sysrq - supplement reset sequence with timeout functionality

Some devices have too few buttons, which it makes it hard to have
a reset combo that won't trigger automatically.  As such a
timeout functionality that requires the combination to be held for
a given amount of time before triggering is introduced.

If a key combo is recognized and held for a 'timeout' amount of time,
the system triggers a reset.  If the timeout value is omitted the
driver simply ignores the functionality.

Signed-off-by: Mathieu Poirier <mathieu.poirier@linaro.org>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/tty/sysrq.c