From 800e6e3df30479cac601560ce7ecaa20c5cb3987 Mon Sep 17 00:00:00 2001 From: gdamore Date: Sun, 10 Sep 2006 21:30:14 +0000 Subject: [PATCH] Removal of stub clock stuff and convert to use MI routines for timecounter and todr support. ok cherry@. --- sys/arch/ia64/ia64/clock.c | 32 +------------------------------- sys/arch/ia64/include/types.h | 4 +++- 2 files changed, 4 insertions(+), 32 deletions(-) diff --git a/sys/arch/ia64/ia64/clock.c b/sys/arch/ia64/ia64/clock.c index c7402532de1a..b7a6037ba3e6 100644 --- a/sys/arch/ia64/ia64/clock.c +++ b/sys/arch/ia64/ia64/clock.c @@ -1,4 +1,4 @@ -/* $NetBSD: clock.c,v 1.1 2006/04/07 14:21:18 cherry Exp $ */ +/* $NetBSD: clock.c,v 1.2 2006/09/10 21:30:14 gdamore Exp $ */ /* * Copyright (c) 2006 The NetBSD Foundation, Inc. @@ -44,15 +44,6 @@ #include #include -/* - * Fill in *tvp with current time with microsecond resolution. - */ -void -microtime(tvp) - struct timeval *tvp; -{ -} - void cpu_initclocks() { @@ -64,24 +55,3 @@ setstatclockrate(newhz) { } -/* - * Initialize the time of day register, based on the time base which is, e.g. - * from a filesystem. Base provides the time to within six months, - * and the time of year clock (if any) provides the rest. - */ -void -inittodr(base) - time_t base; -{ -} - -/* - * Reset the TODR based on the time value; used when the TODR - * has a preposterous value and also when the time is reset - * by the stime system call. - */ -void -resettodr() -{ - return; -} diff --git a/sys/arch/ia64/include/types.h b/sys/arch/ia64/include/types.h index 690d1303cb5b..038f045016af 100644 --- a/sys/arch/ia64/include/types.h +++ b/sys/arch/ia64/include/types.h @@ -1,4 +1,4 @@ -/* $NetBSD: types.h,v 1.1 2006/04/07 14:21:18 cherry Exp $ */ +/* $NetBSD: types.h,v 1.2 2006/09/10 21:30:14 gdamore Exp $ */ /*- * Copyright (c) 1990 The Regents of the University of California. @@ -69,6 +69,8 @@ typedef __volatile int __cpu_simple_lock_t; #if defined(_KERNEL) #define __HAVE_RAS +#define __HAVE_TIMECOUNTER +#define __HAVE_GENERIC_TODR #endif #endif /* _MACHTYPES_H_ */