Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/hpcmips obsolete intrcnt[].



details:   https://anonhg.NetBSD.org/src/rev/77f75e72b23e
branches:  trunk
changeset: 526999:77f75e72b23e
user:      uch <uch%NetBSD.org@localhost>
date:      Wed May 15 15:19:54 2002 +0000

description:
obsolete intrcnt[].

diffstat:

 sys/arch/hpcmips/include/intr.h |  11 +----------
 sys/arch/hpcmips/tx/tx39icu.c   |   3 +--
 sys/arch/hpcmips/vr/rtc.c       |  14 +-------------
 3 files changed, 3 insertions(+), 25 deletions(-)

diffs (78 lines):

diff -r ceb6b14fe8e6 -r 77f75e72b23e sys/arch/hpcmips/include/intr.h
--- a/sys/arch/hpcmips/include/intr.h   Wed May 15 14:59:21 2002 +0000
+++ b/sys/arch/hpcmips/include/intr.h   Wed May 15 15:19:54 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: intr.h,v 1.15 2001/09/23 14:32:52 uch Exp $    */
+/*     $NetBSD: intr.h,v 1.16 2002/05/15 15:19:54 uch Exp $    */
 
 /*
  * Copyright (c) 1998 Jonathan Stone.  All rights reserved.
@@ -114,15 +114,6 @@
 #define        spllowersoftclock() _spllower(ipl_sr_bits[IPL_SOFTCLOCK])
 
 /*
- * Index into intrcnt[], which is defined in locore
- */
-extern u_long intrcnt[];
-
-#define        SOFTCLOCK_INTR  0
-#define        SOFTNET_INTR    1
-#define        HARDCLOCK       8
-
-/*
  * software simulated interrupt
  */
 #define        setsoft(x)                                                      \
diff -r ceb6b14fe8e6 -r 77f75e72b23e sys/arch/hpcmips/tx/tx39icu.c
--- a/sys/arch/hpcmips/tx/tx39icu.c     Wed May 15 14:59:21 2002 +0000
+++ b/sys/arch/hpcmips/tx/tx39icu.c     Wed May 15 15:19:54 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: tx39icu.c,v 1.17 2002/05/03 07:31:25 takemura Exp $ */
+/*     $NetBSD: tx39icu.c,v 1.18 2002/05/15 15:19:55 uch Exp $ */
 
 /*-
  * Copyright (c) 1999-2001 The NetBSD Foundation, Inc.
@@ -466,7 +466,6 @@
                cf.pc = pc;
                cf.sr = status;
                hardclock(&cf);
-               intrcnt[HARDCLOCK]++;
 
                return;
        }
diff -r ceb6b14fe8e6 -r 77f75e72b23e sys/arch/hpcmips/vr/rtc.c
--- a/sys/arch/hpcmips/vr/rtc.c Wed May 15 14:59:21 2002 +0000
+++ b/sys/arch/hpcmips/vr/rtc.c Wed May 15 15:19:54 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: rtc.c,v 1.14 2002/02/10 14:15:32 takemura Exp $        */
+/*     $NetBSD: rtc.c,v 1.15 2002/05/15 15:19:55 uch Exp $     */
 
 /*-
  * Copyright (c) 1999 Shin Takemura. All rights reserved.
@@ -54,7 +54,6 @@
 /*
  * for debugging definitions
  *     VRRTCDEBUG      print rtc debugging information
- *     VRRTC_HEARTBEAT print HEARTBEAT (too many print...)
  */
 #ifdef VRRTCDEBUG
 #ifndef VRRTCDEBUG_CONF
@@ -224,18 +223,7 @@
        cf.pc = pc;
        cf.sr = statusReg;
        hardclock(&cf);
-       intrcnt[HARDCLOCK]++;
 
-#ifdef VRRTC_HEARTBEAT
-       if ((intrcnt[HARDCLOCK] % (CLOCK_RATE * 5)) == 0) {
-               struct clock_ymdhms dt;
-               clock_get((struct device *)sc, NULL, &dt);
-               printf("%s(%d): rtc_intr: %2d.%2d.%2d %02d:%02d:%02d\n",
-                   __FILE__, __LINE__,
-                   dt.dt_year, dt.dt_mon, dt.dt_day,
-                   dt.dt_hour, dt.dt_min, dt.dt_sec);
-       }
-#endif
        return 0;
 }
 



Home | Main Index | Thread Index | Old Index