Schedule timeout a little bit sooner. Doing this once every minute isn't
authorpatrick <patrick@openbsd.org>
Fri, 28 May 2021 13:08:37 +0000 (13:08 +0000)
committerpatrick <patrick@openbsd.org>
Fri, 28 May 2021 13:08:37 +0000 (13:08 +0000)
going to hurt, but might save you if you run the machine badly into swap.

Proposed by kettenis@

sys/dev/fdt/imxdog.c

index 82f4a12..73ca020 100644 (file)
@@ -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 <patrick@blueri.se>
  *
@@ -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 {