Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/emips Remove __HAVE_GENERIC_TODR, which has been ma...



details:   https://anonhg.NetBSD.org/src/rev/e3155f8ffcb3
branches:  trunk
changeset: 765964:e3155f8ffcb3
user:      tsutsui <tsutsui%NetBSD.org@localhost>
date:      Sun Jun 12 04:22:18 2011 +0000

description:
Remove __HAVE_GENERIC_TODR, which has been mandatory since 2008.

diffstat:

 sys/arch/emips/ebus/clock_ebus.c |  8 ++------
 sys/arch/emips/include/types.h   |  4 +---
 2 files changed, 3 insertions(+), 9 deletions(-)

diffs (61 lines):

diff -r c796be804d55 -r e3155f8ffcb3 sys/arch/emips/ebus/clock_ebus.c
--- a/sys/arch/emips/ebus/clock_ebus.c  Sun Jun 12 04:20:18 2011 +0000
+++ b/sys/arch/emips/ebus/clock_ebus.c  Sun Jun 12 04:22:18 2011 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: clock_ebus.c,v 1.2 2011/06/12 04:17:30 tsutsui Exp $   */
+/*     $NetBSD: clock_ebus.c,v 1.3 2011/06/12 04:22:18 tsutsui Exp $   */
 
 /*-
  * Copyright (c) 2010 The NetBSD Foundation, Inc.
@@ -31,7 +31,7 @@
  */
 
 #include <sys/cdefs.h>                 /* RCS ID & Copyright macro defns */
-__KERNEL_RCSID(0, "$NetBSD: clock_ebus.c,v 1.2 2011/06/12 04:17:30 tsutsui Exp $");
+__KERNEL_RCSID(0, "$NetBSD: clock_ebus.c,v 1.3 2011/06/12 04:22:18 tsutsui Exp $");
 
 #include <sys/param.h>
 #include <sys/kernel.h>
@@ -53,9 +53,7 @@
        struct _Tc *sc_dp;
        uint32_t reload;
        struct timecounter sc_tc;
-#ifdef __HAVE_GENERIC_TODR
        struct todr_chip_handle sc_todr;
-#endif
 };
 
 static int     eclock_ebus_match(device_t, cfdata_t, void *);
@@ -333,14 +331,12 @@
            sc->sc_dev->dv_xname, "intr");
 #endif
 
-#ifdef __HAVE_GENERIC_TODR
        clockdev = self;
        memset(&sc->sc_todr,0,sizeof sc->sc_todr);
        sc->sc_todr.cookie = sc;
        sc->sc_todr.todr_gettime = eclock_gettime;
        sc->sc_todr.todr_settime = eclock_settime;
        todr_attach(&sc->sc_todr);
-#endif
 
        tc_init(&sc->sc_tc);
 }
diff -r c796be804d55 -r e3155f8ffcb3 sys/arch/emips/include/types.h
--- a/sys/arch/emips/include/types.h    Sun Jun 12 04:20:18 2011 +0000
+++ b/sys/arch/emips/include/types.h    Sun Jun 12 04:22:18 2011 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: types.h,v 1.1 2011/01/26 01:18:52 pooka Exp $  */
+/*     $NetBSD: types.h,v 1.2 2011/06/12 04:22:18 tsutsui Exp $        */
 
 #include <mips/types.h>
 
@@ -6,8 +6,6 @@
 #define        __HAVE_GENERIC_SOFT_INTERRUPTS
 /* We'll use the FreeRunning counter everywhere */
 #define __HAVE_TIMECOUNTER
-/* ..and that's good enough for a 58k year TODR as well */
-#define __HAVE_GENERIC_TODR
 
 /* MIPS specific options */
 #define        __HAVE_BOOTINFO_H



Home | Main Index | Thread Index | Old Index