public inbox for linux-watchdog@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/3] MIPS: Use do_kernel_restart() as the default restart handler
@ 2015-01-10 18:29 Lars-Peter Clausen
  2015-01-10 18:29 ` [PATCH 2/3] MIPS: qi_lb60: Register watchdog device Lars-Peter Clausen
                   ` (2 more replies)
  0 siblings, 3 replies; 18+ messages in thread
From: Lars-Peter Clausen @ 2015-01-10 18:29 UTC (permalink / raw)
  To: Ralf Baechle
  Cc: Guenter Roeck, Wim Van Sebroeck, Paul Burton, Paul Cercueil,
	Maarten ter Huurne, linux-mips, linux-watchdog,
	Lars-Peter Clausen

Use the recently introduced do_kernel_restart() function as the default restart
handler if the platform did not explicitly provide a restart handler. This
allows use restart handler that have been registered by device drivers to
restart the machine.

Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
---
 arch/mips/kernel/reset.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/mips/kernel/reset.c b/arch/mips/kernel/reset.c
index 07fc524..36cd80c 100644
--- a/arch/mips/kernel/reset.c
+++ b/arch/mips/kernel/reset.c
@@ -19,7 +19,7 @@
  * So handle all using function pointers to machine specific
  * functions.
  */
-void (*_machine_restart)(char *command);
+void (*_machine_restart)(char *command) = do_kernel_restart;
 void (*_machine_halt)(void);
 void (*pm_power_off)(void);
 
-- 
1.7.10.4

^ permalink raw reply related	[flat|nested] 18+ messages in thread

end of thread, other threads:[~2015-01-11 16:17 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-01-10 18:29 [PATCH 1/3] MIPS: Use do_kernel_restart() as the default restart handler Lars-Peter Clausen
2015-01-10 18:29 ` [PATCH 2/3] MIPS: qi_lb60: Register watchdog device Lars-Peter Clausen
2015-01-11  1:24   ` Guenter Roeck
2015-01-11  1:37     ` Maarten ter Huurne
2015-01-11 16:17       ` Guenter Roeck
2015-01-10 18:29 ` [PATCH 3/3] MIPS: jz4740: Move reset code to the watchdog driver Lars-Peter Clausen
2015-01-11  1:18   ` Guenter Roeck
2015-01-11  1:43     ` Maarten ter Huurne
2015-01-11  9:41       ` Lars-Peter Clausen
2015-01-11 16:16         ` Guenter Roeck
2015-01-10 20:08 ` [PATCH 1/3] MIPS: Use do_kernel_restart() as the default restart handler Måns Rullgård
2015-01-11  1:19   ` Guenter Roeck
2015-01-11 12:15     ` Måns Rullgård
2015-01-11 12:25       ` Lars-Peter Clausen
2015-01-11 12:30         ` Måns Rullgård
2015-01-11 12:41           ` Lars-Peter Clausen
2015-01-11 12:45             ` Måns Rullgård
2015-01-11 16:13         ` Guenter Roeck

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox