Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 18 Sep 1998 02:16:18 +1000
From:      Bruce Evans <bde@zeta.org.au>
To:        jhay@mikom.csir.co.za, phk@critter.freebsd.dk
Cc:        bde@FreeBSD.ORG, current@FreeBSD.ORG, mike@smith.net.au
Subject:   Re: Death by SIGXCPU (problems with our clock code)
Message-ID:  <199809171616.CAA19641@godzilla.zeta.org.au>

next in thread | raw e-mail | index | archive | help

>So, do you have better test code that is available, or should I just use
>Mike's? I would really also like to find out what the problem is, because
>I have just about given up trying to get PPS working properly from sio
>interrupts on 486 and SMP machines. On my two machines that use the 8254
>for the timecounter I see forward jumps.

How big and consistent are the jumps?  microtime() was never designed to
work when called from a fast interrupt handler.  It's interesting that it
works worse than before.  It's fairly obvious why it doesn't - switching
high-level timecounters is atomic, but the i8254 timecounter has internal
state that is not switched atomically in clkintr().  This part of the
problem should be easy to fix by adding a disable_intr()/enable_intr().

Bruce

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199809171616.CAA19641>