diff mbox

[3/4] etraxfs_timer: Change qemu_system_reset_request to watchdog_perform_action where appropriate

Message ID 1457971011-26047-1-git-send-email-aesmade@gmail.com
State New
Headers show

Commit Message

Nikos Filippakis March 14, 2016, 3:56 p.m. UTC
Instead of using qemu_system_reset_request() to reset when a watchdog triggers,
let watchdog_perform_action() decide what to do, as stated in the BiteSizedTasks
wiki page.

Signed-off-by: Nikos Filippakis <aesmade@gmail.com>
---
 hw/timer/etraxfs_timer.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
diff mbox

Patch

diff --git a/hw/timer/etraxfs_timer.c b/hw/timer/etraxfs_timer.c
index 36d8f46..cb9997d 100644
--- a/hw/timer/etraxfs_timer.c
+++ b/hw/timer/etraxfs_timer.c
@@ -26,6 +26,7 @@ 
 #include "sysemu/sysemu.h"
 #include "qemu/timer.h"
 #include "hw/ptimer.h"
+#include "sysemu/watchdog.h"
 
 #define D(x)
 
@@ -207,7 +208,7 @@  static void watchdog_hit(void *opaque)
         qemu_irq_raise(t->nmi);
     }
     else
-        qemu_system_reset_request();
+        watchdog_perform_action();
 
     t->wd_hits++;
 }