From owner-freebsd-arch Sun Feb 17 22:29: 5 2002 Delivered-To: freebsd-arch@freebsd.org Received: from critter.freebsd.dk (critter.freebsd.dk [212.242.86.163]) by hub.freebsd.org (Postfix) with ESMTP id B00DE37B400; Sun, 17 Feb 2002 22:29:00 -0800 (PST) Received: from critter.freebsd.dk (localhost [127.0.0.1]) by critter.freebsd.dk (8.11.6/8.11.6) with ESMTP id g1I6PoN33060; Mon, 18 Feb 2002 07:25:51 +0100 (CET) (envelope-from phk@critter.freebsd.dk) To: Bruce Evans Cc: Terry Lambert , Matthew Dillon , Julian Elischer , Alfred Perlstein , arch@FreeBSD.ORG, jhb@FreeBSD.ORG, peter@wemm.org, jake@locore.ca Subject: Re: gettimeofday() and crhold()/crfree() (was Re: gettimeofday()andcopyout(). Is copyout() MPSAFE on non-i386 archs? ) In-Reply-To: Your message of "Mon, 18 Feb 2002 14:52:51 +1100." <20020218144148.F4583-100000@gamplex.bde.org> Date: Mon, 18 Feb 2002 07:25:50 +0100 Message-ID: <33058.1014013550@critter.freebsd.dk> From: Poul-Henning Kamp Sender: owner-freebsd-arch@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG In message <20020218144148.F4583-100000@gamplex.bde.org>, Bruce Evans writes: >> I *know* that it is a significant win to flip-flop the >> timecounter context into a reflected user space page >> on each and every clock interrupt. > >That can't be used to implement gettimeofday(). It can only be used >to implement the userland equivalants of get_micro[up]time() and >get_nano[up]time(). I don't like using these even for stamping file >times in seconds in the kernel (though they have more than enough >precision for this), since they give times that are incoherent >relative to other ways of determining the time. Erhm... I am going to ask to let this this discussion die out now, nobody seems to have entirely grasped the idea so I think we shall postpone it until I have some patches. -- Poul-Henning Kamp | UNIX since Zilog Zeus 3.20 phk@FreeBSD.ORG | TCP/IP since RFC 956 FreeBSD committer | BSD since 4.3-tahoe Never attribute to malice what can adequately be explained by incompetence. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-arch" in the body of the message