Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/arm/marvell The maximum watchdog period is dependan...



details:   https://anonhg.NetBSD.org/src/rev/faab0241a7ca
branches:  trunk
changeset: 780395:faab0241a7ca
user:      jakllsch <jakllsch%NetBSD.org@localhost>
date:      Sun Jul 22 16:59:10 2012 +0000

description:
The maximum watchdog period is dependant on mvTclk; calculate at runtime.
This gets the maximum period up to 25 seconds at 166?MHz mvTclk.

diffstat:

 sys/arch/arm/marvell/mvsoctmr.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 5b42e44fce2f -r faab0241a7ca sys/arch/arm/marvell/mvsoctmr.c
--- a/sys/arch/arm/marvell/mvsoctmr.c   Sun Jul 22 16:54:35 2012 +0000
+++ b/sys/arch/arm/marvell/mvsoctmr.c   Sun Jul 22 16:59:10 2012 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: mvsoctmr.c,v 1.6 2012/07/22 16:54:35 jakllsch Exp $    */
+/*     $NetBSD: mvsoctmr.c,v 1.7 2012/07/22 16:59:10 jakllsch Exp $    */
 /*
  * Copyright (c) 2007, 2008 KIYOHARA Takashi
  * All rights reserved.
@@ -25,7 +25,7 @@
  * POSSIBILITY OF SUCH DAMAGE.
  */
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: mvsoctmr.c,v 1.6 2012/07/22 16:54:35 jakllsch Exp $");
+__KERNEL_RCSID(0, "$NetBSD: mvsoctmr.c,v 1.7 2012/07/22 16:59:10 jakllsch Exp $");
 
 #include "opt_ddb.h"
 
@@ -86,7 +86,7 @@
 static void mvsoctmr_wdog_ddb_trap(int);
 #endif
 
-#define MVSOC_WDOG_MAX_PERIOD  21
+#define MVSOC_WDOG_MAX_PERIOD  (0xffffffff / mvTclk)
 
 static struct mvsoctmr_softc *mvsoctmr_sc;
 static struct timecounter mvsoctmr_timecounter = {



Home | Main Index | Thread Index | Old Index