Skip to contentSkip to conversation

musicpal: Change qemu_system_reset_request to watchdog_perform_action where appropriate

PATCH New Nikos Filippakis 1 participant 1 message Mar 14, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/4 musicpal: Change qemu_system_reset_request to watchdog_perform_action where appropriate

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.

---
 hw/arm/musicpal.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
hw/arm/musicpal.c +2 -1
index 54548f3..c9d57de 100644
@@ -25,6 +25,7 @@
 #include "sysemu/block-backend.h"
 #include "exec/address-spaces.h"
 #include "ui/pixel_ops.h"
+#include "sysemu/watchdog.h"
 
 #define MP_MISC_BASE            0x80002000
 #define MP_MISC_SIZE            0x00001000
@@ -887,7 +888,7 @@ static void mv88w8618_pit_write(void *opaque, hwaddr offset,
 
     case MP_BOARD_RESET:
         if (value == MP_BOARD_RESET_MAGIC) {
-            qemu_system_reset_request();
+            watchdog_perform_action();
         }
         break;
     }
Signature · 1 line
1.9.1