Source-Changes-HG archive

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

[src/netbsd-1-5]: src/sys/dev/raidframe Pullup 1.8 [oster]:



details:   https://anonhg.NetBSD.org/src/rev/46681c12a06b
branches:  netbsd-1-5
changeset: 489812:46681c12a06b
user:      tv <tv%NetBSD.org@localhost>
date:      Tue Oct 17 20:01:14 2000 +0000

description:
Pullup 1.8 [oster]:
Only reset the timer value if it actually accumlated time.
Otherwise it may never accumulate any time, and the recon delay
will never happen.

diffstat:

 sys/dev/raidframe/rf_revent.c |  8 +++++---
 1 files changed, 5 insertions(+), 3 deletions(-)

diffs (22 lines):

diff -r d4bb53304654 -r 46681c12a06b sys/dev/raidframe/rf_revent.c
--- a/sys/dev/raidframe/rf_revent.c     Tue Oct 17 20:01:12 2000 +0000
+++ b/sys/dev/raidframe/rf_revent.c     Tue Oct 17 20:01:14 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: rf_revent.c,v 1.7 2000/05/30 02:04:29 oster Exp $      */
+/*     $NetBSD: rf_revent.c,v 1.7.2.1 2000/10/17 20:01:14 tv Exp $     */
 /*
  * Copyright (c) 1995 Carnegie-Mellon University.
  * All rights reserved.
@@ -156,8 +156,10 @@
        }
 
        reconDesc->reconExecTimerRunning = 1;
-       RF_ETIMER_START(reconDesc->recon_exec_timer);
-
+       if (RF_ETIMER_VAL_US(reconDesc->recon_exec_timer)!=0) {
+               /* it moved!!  reset the timer. */
+               RF_ETIMER_START(reconDesc->recon_exec_timer);
+       }
        event = rctrl->eventQueue;
        rctrl->eventQueue = event->next;
        event->next = NULL;



Home | Main Index | Thread Index | Old Index