From owner-freebsd-arch Wed Jan 3 20:47: 5 2001 From owner-freebsd-arch@FreeBSD.ORG Wed Jan 3 20:47:04 2001 Return-Path: Delivered-To: freebsd-arch@freebsd.org Received: from mailman.zeta.org.au (mailman.zeta.org.au [203.26.10.16]) by hub.freebsd.org (Postfix) with ESMTP id 2766337B400 for ; Wed, 3 Jan 2001 20:47:03 -0800 (PST) Received: from bde.zeta.org.au (bde.zeta.org.au [203.2.228.102]) by mailman.zeta.org.au (8.9.3/8.8.7) with ESMTP id PAA18617; Thu, 4 Jan 2001 15:46:35 +1100 Date: Thu, 4 Jan 2001 15:47:27 +1100 (EST) From: Bruce Evans X-Sender: bde@besplex.bde.org To: Alexander Langer Cc: arch@FreeBSD.ORG Subject: Re: (fwd) getnanouptime() patch In-Reply-To: <20010103220104.A2132@cichlids.cichlids.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-arch@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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