Răsfoiți Sursa

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 ani în urmă
părinte
comite
fcd2bb9b5d
1 a modificat fișierele cu 4 adăugiri și 0 ștergeri
  1. 4 0
      drivers/tty/serial/mfd.c

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

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