瀏覽代碼

serial: mfd: Add sysrq support

When using MFD HSU based console, sometime we need the sysrq function
to help debugging kernel. The sysrq code is basically there, this
patch just simply enable it.

Signed-off-by: Feng Tang <feng.tang@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Feng Tang 12 年之前
父節點
當前提交
fcd2bb9b5d
共有 1 個文件被更改,包括 4 次插入0 次删除
  1. 4 0
      drivers/tty/serial/mfd.c

+ 4 - 0
drivers/tty/serial/mfd.c

@@ -21,6 +21,10 @@
  *    be triggered
  */
 
+#if defined(CONFIG_SERIAL_MFD_HSU_CONSOLE) && defined(CONFIG_MAGIC_SYSRQ)
+#define SUPPORT_SYSRQ
+#endif
+
 #include <linux/module.h>
 #include <linux/init.h>
 #include <linux/console.h>