From: Eric W. Biederman Date: Tue, 26 Jul 2005 17:59:54 +0000 (-0600) Subject: [PATCH] 68328serial: sysrq should use emergency_reboot X-Git-Tag: v2.6.13-rc4~49 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=804ebf46d51653e736108074473d9493398f2df9;p=linux-2.6 [PATCH] 68328serial: sysrq should use emergency_reboot The 68328serial.c driver has a weird local reimplementation of magic sysrq. The code is architecture specific enough that calling machine_restart() is probably ok. But there is no reason not to call emergency_restart() so do so. Signed-off-by: Eric W. Biederman Signed-off-by: Linus Torvalds --- diff --git a/drivers/serial/68328serial.c b/drivers/serial/68328serial.c index d27fb4c881..9097f2f7b1 100644 --- a/drivers/serial/68328serial.c +++ b/drivers/serial/68328serial.c @@ -316,7 +316,7 @@ static _INLINE_ void receive_chars(struct m68k_serial *info, struct pt_regs *reg /* show_net_buffers(); */ return; } else if (ch == 0x12) { /* ^R */ - machine_restart(NULL); + emergency_restart(); return; #endif /* CONFIG_MAGIC_SYSRQ */ }