Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/arm/footbridge Initialize statprev in setstatclockr...



details:   https://anonhg.NetBSD.org/src/rev/44b179b6d118
branches:  trunk
changeset: 538768:44b179b6d118
user:      tsutsui <tsutsui%NetBSD.org@localhost>
date:      Tue Oct 29 14:30:03 2002 +0000

description:
Initialize statprev in setstatclockrate().

diffstat:

 sys/arch/arm/footbridge/footbridge_clock.c |  5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diffs (19 lines):

diff -r dddd236d56c1 -r 44b179b6d118 sys/arch/arm/footbridge/footbridge_clock.c
--- a/sys/arch/arm/footbridge/footbridge_clock.c        Tue Oct 29 14:11:17 2002 +0000
+++ b/sys/arch/arm/footbridge/footbridge_clock.c        Tue Oct 29 14:30:03 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: footbridge_clock.c,v 1.13 2002/10/10 23:19:13 chris Exp $      */
+/*     $NetBSD: footbridge_clock.c,v 1.14 2002/10/29 14:30:03 tsutsui Exp $    */
 
 /*
  * Copyright (c) 1997 Mark Brinicombe.
@@ -244,7 +244,8 @@
        int statvarticks;
 
        /* statint == num in counter to drop by desired hz */
-       statint = clock_sc->sc_statclock_count = load_timer(TIMER_2_BASE, hz);
+       statint = statprev = clock_sc->sc_statclock_count =
+           load_timer(TIMER_2_BASE, hz);
        
        /* Get the total ticks a second */
        countpersecond = statint * hz;



Home | Main Index | Thread Index | Old Index