Removal of stub clock stuff and convert to use MI routines for timecounter
and todr support. ok cherry@.
This commit is contained in:
parent
503611ba29
commit
800e6e3df3
|
@ -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 <sys/systm.h>
|
||||
#include <sys/kernel.h>
|
||||
|
||||
/*
|
||||
* 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;
|
||||
}
|
||||
|
|
|
@ -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_ */
|
||||
|
|
Loading…
Reference in New Issue