Input: sysrq - request graceful shutdown for key reset
authorMathieu J. Poirier <mathieu.poirier@linaro.org>
Thu, 6 Jun 2013 05:51:46 +0000 (22:51 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Thu, 6 Jun 2013 19:03:58 +0000 (12:03 -0700)
commit3d289517dfd48f6487efda81543c3dda8b0e66f2
tree64574e838b5a790684043ba27815efe5075107d3
parent64b8dd299a1344626bbcfcbd62f19f1542349ad8
Input: sysrq - request graceful shutdown for key reset

Attempt to reboot the system gracefully when a key combo is detected.
If the reste combination is pressed the 2nd time we assume that graceful
reboot failed and perform emergency reboot. This fucntionality is useful
when UI is stuck but the system is otherwise working fine.

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