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)
commit3903078677a8dc6f056970b67d15840aa51e1dfa
treef6bbe33c95c1768a3e8cc474c8be43a9b11b40a4
parente10af9e79a97ac5d305ec1be94338e8d3fd7aaa4
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