From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:50511) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1afUrb-0006RX-N5 for qemu-devel@nongnu.org; Mon, 14 Mar 2016 11:57:03 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1afUrX-0005Xa-Lk for qemu-devel@nongnu.org; Mon, 14 Mar 2016 11:56:59 -0400 Received: from mail-wm0-x242.google.com ([2a00:1450:400c:c09::242]:34940) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1afUrX-0005XR-F1 for qemu-devel@nongnu.org; Mon, 14 Mar 2016 11:56:55 -0400 Received: by mail-wm0-x242.google.com with SMTP id n205so16033138wmf.2 for ; Mon, 14 Mar 2016 08:56:55 -0700 (PDT) From: Nikos Filippakis Date: Mon, 14 Mar 2016 17:56:51 +0200 Message-Id: <1457971011-26047-1-git-send-email-aesmade@gmail.com> Subject: [Qemu-devel] [PATCH 3/4] etraxfs_timer: Change qemu_system_reset_request to watchdog_perform_action where appropriate List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Nikos Filippakis , edgar.iglesias@gmail.com 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 --- hw/timer/etraxfs_timer.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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++; } -- 1.9.1