From: Hendrik Brueckner Date: Tue, 16 Dec 2008 00:09:38 +0000 (+0000) Subject: hvc_console: Escape magic sysrq key X-Git-Tag: v2.6.29-rc1~574^2~41 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=368c1e3249afe0e59097e7df664435ae55fb9f8d;p=pandora-kernel.git hvc_console: Escape magic sysrq key The ctrl-o (^O) is a common control key used by several applications, such as vim, but hvc_console uses ^O as the magic-sysrq key. This commit allows users to send ^O to applications by pressing ^O twice in succession. To implement this, this commit introduces a check if ^O is pressed again if the sysrq_pressed variable is already set. In this case, clear sysrq_pressed state and flip the ^O character to the tty. (The old behavior has always set "sysrq_pressed" if ^O has been entered, and it has not flipped the ^O character to the tty.) Signed-off-by: Hendrik Brueckner Signed-off-by: Paul Mackerras --- Reading git-diff-tree failed