From: Feng Tang <feng.tang@intel.com>
To: linux-serial@vger.kernel.org, gregkh@linuxfoundation.org,
alan@linux.intel.com
Cc: Feng Tang <feng.tang@intel.com>
Subject: [PATCH] serial: mfd: Add nmi_touch_watchdog() into the console write function
Date: Thu, 8 Nov 2012 14:10:53 +0800 [thread overview]
Message-ID: <1352355053-30040-1-git-send-email-feng.tang@intel.com> (raw)
This is following what 8250 driver is doing in console write function,
to avoid the hardware lockup case.
Signed-off-by: Feng Tang <feng.tang@intel.com>
---
drivers/tty/serial/mfd.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/drivers/tty/serial/mfd.c b/drivers/tty/serial/mfd.c
index c4b50af..bde9fce 100644
--- a/drivers/tty/serial/mfd.c
+++ b/drivers/tty/serial/mfd.c
@@ -1113,6 +1113,8 @@ serial_hsu_console_write(struct console *co, const char *s, unsigned int count)
unsigned int ier;
int locked = 1;
+ touch_nmi_watchdog();
+
local_irq_save(flags);
if (up->port.sysrq)
locked = 0;
--
1.7.9.5
next reply other threads:[~2012-11-08 6:11 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-11-08 6:10 Feng Tang [this message]
2012-11-08 10:54 ` [PATCH] serial: mfd: Add nmi_touch_watchdog() into the console write function Alan Cox
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1352355053-30040-1-git-send-email-feng.tang@intel.com \
--to=feng.tang@intel.com \
--cc=alan@linux.intel.com \
--cc=gregkh@linuxfoundation.org \
--cc=linux-serial@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox