Date: Thu, 4 Jan 2001 15:47:27 +1100 (EST) From: Bruce Evans <bde@zeta.org.au> To: Alexander Langer <alex@big.endian.de> Cc: arch@FreeBSD.ORG Subject: Re: (fwd) getnanouptime() patch Message-ID: <Pine.BSF.4.21.0101041546150.14514-100000@besplex.bde.org> In-Reply-To: <20010103220104.A2132@cichlids.cichlids.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, 3 Jan 2001, Alexander Langer wrote:
> Thus spake Bruce Evans (bde@zeta.org.au):
>
> > > #ifdef KTR
> > > if (tc == NULL) { /* called before initialization */
> > > ts->tv_sec = 0;
> > > ts->tv_nsec = 0;
> > > return;
> > > }
> > > #endif
> > This is bogus at best. `timecounter' is never NULL unless there is a bug
> > switching it.
>
> Would someone then please change that?
phk removed it.
> A check if (timecounter == &dummy_timecounter) is the correct one
> (IMHO), as shown in the tc_init() function.
No. The purpose of dummy_timecounter is to avoid the need for code like
the above.
Bruce
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-arch" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.21.0101041546150.14514-100000>
