From 308e3b7a692e204e74e41daa98c33c6045226057 Mon Sep 17 00:00:00 2001 From: patrick Date: Fri, 28 May 2021 13:08:37 +0000 Subject: [PATCH] Schedule timeout a little bit sooner. Doing this once every minute isn't going to hurt, but might save you if you run the machine badly into swap. Proposed by kettenis@ --- sys/dev/fdt/imxdog.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/dev/fdt/imxdog.c b/sys/dev/fdt/imxdog.c index 82f4a1267e2..73ca0200bb8 100644 --- a/sys/dev/fdt/imxdog.c +++ b/sys/dev/fdt/imxdog.c @@ -1,4 +1,4 @@ -/* $OpenBSD: imxdog.c,v 1.2 2021/05/28 13:03:55 patrick Exp $ */ +/* $OpenBSD: imxdog.c,v 1.3 2021/05/28 13:08:37 patrick Exp $ */ /* * Copyright (c) 2012-2013,2021 Patrick Wildt * @@ -38,7 +38,7 @@ extern void (*cpuresetfn)(void); #define WICR 0x06 #define WMCR 0x08 -#define WDOG_TIMEOUT_CALLBACK 120 +#define WDOG_TIMEOUT_CALLBACK 60 #define WDOG_MAX_TIMEOUT_SEC 128 struct imxdog_softc { -- 2.20.1