Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/arm32 check whether tv_usec >= 1000000
details: https://anonhg.NetBSD.org/src/rev/b7ba9d3433c7
branches: trunk
changeset: 480868:b7ba9d3433c7
user: tsutsui <tsutsui%NetBSD.org@localhost>
date: Sat Jan 22 05:21:24 2000 +0000
description:
check whether tv_usec >= 1000000
diffstat:
sys/arch/arm32/footbridge/footbridge_clock.c | 6 +++---
sys/arch/arm32/iomd/iomd_clock.c | 6 +++---
sys/arch/arm32/ofw/ofwgencfg_clock.c | 6 +++---
3 files changed, 9 insertions(+), 9 deletions(-)
diffs (81 lines):
diff -r 93aee2c045f7 -r b7ba9d3433c7 sys/arch/arm32/footbridge/footbridge_clock.c
--- a/sys/arch/arm32/footbridge/footbridge_clock.c Sat Jan 22 04:29:58 2000 +0000
+++ b/sys/arch/arm32/footbridge/footbridge_clock.c Sat Jan 22 05:21:24 2000 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: footbridge_clock.c,v 1.2 1999/04/23 09:09:04 mark Exp $ */
+/* $NetBSD: footbridge_clock.c,v 1.3 2000/01/22 05:21:24 tsutsui Exp $ */
/*
* Copyright (c) 1997 Mark Brinicombe.
@@ -262,7 +262,7 @@
tvp->tv_usec += ((deltatm << 8) / clock_sc->sc_clock_ticks_per_256us);
/* Make sure the micro seconds don't overflow. */
- while (tvp->tv_usec > 1000000) {
+ while (tvp->tv_usec >= 1000000) {
tvp->tv_usec -= 1000000;
++tvp->tv_sec;
}
@@ -271,7 +271,7 @@
if (tvp->tv_sec == oldtv.tv_sec &&
tvp->tv_usec <= oldtv.tv_usec) {
tvp->tv_usec = oldtv.tv_usec + 1;
- if (tvp->tv_usec > 1000000) {
+ if (tvp->tv_usec >= 1000000) {
tvp->tv_usec -= 1000000;
++tvp->tv_sec;
}
diff -r 93aee2c045f7 -r b7ba9d3433c7 sys/arch/arm32/iomd/iomd_clock.c
--- a/sys/arch/arm32/iomd/iomd_clock.c Sat Jan 22 04:29:58 2000 +0000
+++ b/sys/arch/arm32/iomd/iomd_clock.c Sat Jan 22 05:21:24 2000 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: iomd_clock.c,v 1.19 1999/04/20 09:14:32 mark Exp $ */
+/* $NetBSD: iomd_clock.c,v 1.20 2000/01/22 05:21:25 tsutsui Exp $ */
/*
* Copyright (c) 1994-1997 Mark Brinicombe.
@@ -291,7 +291,7 @@
tvp->tv_usec += (deltatm / TICKS_PER_MICROSECOND);
/* Make sure the micro seconds don't overflow. */
- while (tvp->tv_usec > 1000000) {
+ while (tvp->tv_usec >= 1000000) {
tvp->tv_usec -= 1000000;
++tvp->tv_sec;
}
@@ -300,7 +300,7 @@
if (tvp->tv_sec == oldtv.tv_sec &&
tvp->tv_usec <= oldtv.tv_usec) {
tvp->tv_usec = oldtv.tv_usec + 1;
- if (tvp->tv_usec > 1000000) {
+ if (tvp->tv_usec >= 1000000) {
tvp->tv_usec -= 1000000;
++tvp->tv_sec;
}
diff -r 93aee2c045f7 -r b7ba9d3433c7 sys/arch/arm32/ofw/ofwgencfg_clock.c
--- a/sys/arch/arm32/ofw/ofwgencfg_clock.c Sat Jan 22 04:29:58 2000 +0000
+++ b/sys/arch/arm32/ofw/ofwgencfg_clock.c Sat Jan 22 05:21:24 2000 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ofwgencfg_clock.c,v 1.6 1998/07/07 00:48:13 mark Exp $ */
+/* $NetBSD: ofwgencfg_clock.c,v 1.7 2000/01/22 05:21:26 tsutsui Exp $ */
/*
* Copyright 1997
@@ -157,7 +157,7 @@
/* Make sure the micro seconds don't overflow. */
- while (tvp->tv_usec > 1000000) {
+ while (tvp->tv_usec >= 1000000) {
tvp->tv_usec -= 1000000;
++tvp->tv_sec;
}
@@ -167,7 +167,7 @@
if (tvp->tv_sec == oldtv.tv_sec &&
tvp->tv_usec <= oldtv.tv_usec) {
tvp->tv_usec = oldtv.tv_usec + 1;
- if (tvp->tv_usec > 1000000) {
+ if (tvp->tv_usec >= 1000000) {
tvp->tv_usec -= 1000000;
++tvp->tv_sec;
}
Home |
Main Index |
Thread Index |
Old Index