]> 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)
commit8f7a08d056d2e894d1063eeb74bfa7eea0bd87a1
treef6bbe33c95c1768a3e8cc474c8be43a9b11b40a4
parentf8618b0ff2271555e7be63820e93b1e16cedff96
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