Commit edd63cb6b91024332d6983fc51058ac1ef0c081e
1 parent
b0679c63db
Exists in
master
and in
7 other branches
sysrq,kdb: Use __handle_sysrq() for kdb's sysrq function
The kdb code should not toggle the sysrq state in case an end user wants to try and resume the normal kernel execution. Signed-off-by: Jason Wessel <jason.wessel@windriver.com> Acked-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Showing 3 changed files with 3 additions and 3 deletions Side-by-side Diff
drivers/char/sysrq.c
... | ... | @@ -493,7 +493,7 @@ |
493 | 493 | sysrq_key_table[i] = op_p; |
494 | 494 | } |
495 | 495 | |
496 | -static void __handle_sysrq(int key, struct tty_struct *tty, int check_mask) | |
496 | +void __handle_sysrq(int key, struct tty_struct *tty, int check_mask) | |
497 | 497 | { |
498 | 498 | struct sysrq_key_op *op_p; |
499 | 499 | int orig_log_level; |
include/linux/sysrq.h
... | ... | @@ -45,6 +45,7 @@ |
45 | 45 | */ |
46 | 46 | |
47 | 47 | void handle_sysrq(int key, struct tty_struct *tty); |
48 | +void __handle_sysrq(int key, struct tty_struct *tty, int check_mask); | |
48 | 49 | int register_sysrq_key(int key, struct sysrq_key_op *op); |
49 | 50 | int unregister_sysrq_key(int key, struct sysrq_key_op *op); |
50 | 51 | struct sysrq_key_op *__sysrq_get_key_op(int key); |
kernel/debug/kdb/kdb_main.c