1 --- a/lib/Kconfig.debug
2 +++ b/lib/Kconfig.debug
3 @@ -397,6 +397,11 @@ config MAGIC_SYSRQ_DEFAULT_ENABLE
4 This may be set to 1 or 0 to enable or disable them all, or
5 to a bitmask as described in Documentation/sysrq.txt.
7 +config MAGIC_SYSRQ_SERIAL
8 + bool "Enable magic SysRq key over serial"
9 + depends on MAGIC_SYSRQ
13 bool "Kernel debugging"
15 --- a/include/linux/serial_core.h
16 +++ b/include/linux/serial_core.h
17 @@ -448,7 +448,7 @@ extern void uart_handle_cts_change(struc
18 extern void uart_insert_char(struct uart_port *port, unsigned int status,
19 unsigned int overrun, unsigned int ch, unsigned int flag);
22 +#if defined(SUPPORT_SYSRQ) && defined(CONFIG_MAGIC_SYSRQ_SERIAL)
24 uart_handle_sysrq_char(struct uart_port *port, unsigned int ch)