Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/ibmnws/ibmnws Remove a shadow declaration.
details: https://anonhg.NetBSD.org/src/rev/9a24157090e1
branches: trunk
changeset: 581683:9a24157090e1
user: rjs <rjs%NetBSD.org@localhost>
date: Fri Jun 03 20:15:59 2005 +0000
description:
Remove a shadow declaration.
diffstat:
sys/arch/ibmnws/ibmnws/clock.c | 14 +++++++-------
1 files changed, 7 insertions(+), 7 deletions(-)
diffs (40 lines):
diff -r 76100ee523aa -r 9a24157090e1 sys/arch/ibmnws/ibmnws/clock.c
--- a/sys/arch/ibmnws/ibmnws/clock.c Fri Jun 03 19:04:10 2005 +0000
+++ b/sys/arch/ibmnws/ibmnws/clock.c Fri Jun 03 20:15:59 2005 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: clock.c,v 1.1 2003/10/19 03:33:50 matt Exp $ */
+/* $NetBSD: clock.c,v 1.2 2005/06/03 20:15:59 rjs Exp $ */
/* $OpenBSD: clock.c,v 1.3 1997/10/13 13:42:53 pefo Exp $ */
/*
@@ -261,7 +261,7 @@
int msr;
int pri;
u_long tb;
- long tick;
+ long count;
int nticks;
extern long intrcnt[];
@@ -275,16 +275,16 @@
* Based on the actual time delay since the last decrementer reload,
* we arrange for earlier interrupt next time.
*/
- asm ("mftb %0; mfdec %1" : "=r"(tb), "=r"(tick));
- for (nticks = 0; tick < 0; nticks++)
- tick += ticks_per_intr;
- asm volatile ("mtdec %0" :: "r"(tick));
+ asm ("mftb %0; mfdec %1" : "=r"(tb), "=r"(count));
+ for (nticks = 0; count < 0; nticks++)
+ count += ticks_per_intr;
+ asm volatile ("mtdec %0" :: "r"(count));
/*
* lasttb is used during microtime. Set it to the virtual
* start of this tick interval.
*/
- lasttb = tb + tick - ticks_per_intr;
+ lasttb = tb + count - ticks_per_intr;
intrcnt[CNT_CLOCK]++;
Home |
Main Index |
Thread Index |
Old Index