From owner-freebsd-smp Sun Apr 5 05:12:24 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id FAA12474 for freebsd-smp-outgoing; Sun, 5 Apr 1998 05:12:24 -0700 (PDT) (envelope-from owner-freebsd-smp@FreeBSD.ORG) Received: from godzilla.zeta.org.au (godzilla.zeta.org.au [203.2.228.19]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id FAA12469 for ; Sun, 5 Apr 1998 05:12:22 -0700 (PDT) (envelope-from bde@godzilla.zeta.org.au) Received: (from bde@localhost) by godzilla.zeta.org.au (8.8.7/8.8.7) id WAA03352; Sun, 5 Apr 1998 22:09:39 +1000 Date: Sun, 5 Apr 1998 22:09:39 +1000 From: Bruce Evans Message-Id: <199804051209.WAA03352@godzilla.zeta.org.au> To: bde@zeta.org.au, phk@critter.freebsd.dk Subject: Re: more SMP stuff Cc: peter@netplex.com.au, smp@FreeBSD.ORG Sender: owner-freebsd-smp@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >>I found the bug in microtime(): >>(1) the dummy timecounter has a frequency of only 10^5 Hz, but it runs >> much faster than that so we get too-large delta counts. > >Ups, I intended that to be 10^6 Hz... The scaling needs to be more robust since the h/w counter might be slower than 10^6 hz. >This isn't it anyway, the dummy counter is only used by syscons >screensaver calls to getmicroruntime(); It's used by my version of the floppy driver which calls microtime() to timestamp certain events. I don't think I call nanotime() so early. My rtcintr() calls nanotime() to gather statistics, and nanotime() was reentered. I don't see any reentrancy problems. There will be one when nanotime updates tc->nanotime like it should. Bruce To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-smp" in the body of the message